title: undefined local variable or method `page'
body: <p>I am using rails. I execute a ruby script using following command. And it gives an error. what'd be problem? If I remove "page.should have_content('Demo App')", then it works properly!</p>
  
  <pre><code> bundle exec rspec spec/requests/test_pages_spec.rb
  </code></pre>
  
  <hr>
  
  <pre><code> Failures:
  
  1) Test pages Home page should have the content 'Demo App'
   Failure/Error: page.should have_content('Demo App')
   NameError:
     undefined local variable or method `page' for #&lt;RSpec::Core::ExampleGroup::Nested_1::Nested_1:0xa60d538&gt;
   # ./spec/requests/test_pages_spec.rb:9:in `block (3 levels) in &lt;top (required)&gt;'
  
  Finished in 0.27788 seconds
  1 example, 1 failure
  
  Failed examples:
  
  rspec ./spec/requests/test_pages_spec.rb:7 # Test pages Home page should have the content 'Demo App'
  </code></pre>
  
  <p>test_pages_spec.rb is as follow:</p>
  
  <pre><code>require 'spec_helper'
  
  describe "Test pages" do
  
  describe "Home page" do
  
     it "should have the content 'Demo App'" do
      visit '/test_pages/home'
      page.should have_content('Demo App')
     end
   end
  end
  </code></pre>