Tutorail test writing problem

Hello,

I try to follow this tutorial :

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