0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

undefined local variable or method で嵌まった

Posted at

rails testの勉強をしつつ
下記のエラーで嵌まり
contorollerのどこが悪い‥‥‥のかと見ていて嵌まったのですが
復習しつつ上から追っていったところ
routesの get 'welcome/index'を#で
動かさないようにしていたということ忘れ恐ろしく時間をかけてしまった

$ rails test
Run options: --seed 48513

Running:

..E

Error:
WelcomeControllerTest#test_should_get_index:
NameError: undefined local variable or method welcome_index_url' for #<WelcomeControllerTest:0x000000000b951ba8> test/controllers/welcome_controller_test.rb:5:in block in class:WelcomeControllerTest'

bin/rails test test/controllers/welcome_controller_test.rb:4

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?