2014年2月17日月曜日

5.3.2

root_pathが定義されていないとのエラー。 他のページはうまくいくんに…。
1) Static pages Home page should have the base title
Failure/Error: visit root_path
NameError:
undefined local variable or method `root_path' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007f959def78f8>
# ./spec/requests/static_pages_spec.rb:13:in `block (3 levels) in <top (required)>'
2) Static pages Home page should have the h1 'Sample App'
Failure/Error: visit root_path
NameError:
undefined local variable or method `root_path' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007f959e34a8d8>
# ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top (required)>'
3) Static pages Home page should not have a custom page title
Failure/Error: visit root_path
NameError:
undefined local variable or method `root_path' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007f959e2b9540>
# ./spec/requests/static_pages_spec.rb:18:in `block (3 levels) in <top (required)>'
Finished in 0.34788 seconds
9 examples, 3 failures
Failed examples:
rspec ./spec/requests/static_pages_spec.rb:12 # Static pages Home page should have the base title
rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page should have the h1 'Sample App'
rspec ./spec/requests/static_pages_spec.rb:17 # Static pages Home page should not have a custom page title
view raw 5.3.2error hosted with ❤ by GitHub
guardを再起動したら治ったっぽい?

0 件のコメント:

コメントを投稿