Hello,
I try to follow this tutorial :
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
Im now at chapter 3.2.1.
But the test is still failing even if I do everything according to the
chapter.
My code can be found here : https://github.com/roelof1967/demo_app
And the faiing message is :
Failures:
1) Static pages Home page should have the content ''Sample
App''
Failure/Error: visit ''/static_pages/home''
NoMethodError:
undefined method `visit'' for
#<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x0000080572bf98>
# ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top
(required)>''
Finished in 0.0099 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page
should have the content ''Sample App''
Failures:
1) Static pages Home page should have the content ''Sample
App''
Failure/Error: visit ''/static_pages/home''
NoMethodError:
undefined method `visit'' for
#<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x0000080572bf98>
# ./spec/requests/static_pages_spec.rb:8:in `block (3 levels) in <top
(required)>''
Finished in 0.0099 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page
should have the content ''Sample App''
Can anyone help me figure out what is wrong here.
Roelof
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/x7SXf9RElawJ.
For more options, visit https://groups.google.com/groups/opt_out.