title: RubyTutorial 10.5.2 Rspec test micropost pagination
body: <p>While going through the Learn Rails book written by Michael Hartl, I'm stumped on one of the exercises.
  <a href="http://ruby.railstutorial.org/chapters/user-microposts" rel="nofollow">Learn Rails by Example by Michael Hartl</a></p>
  
  <p>"Add tests for micropost pagination"</p>
  
  <p>My incorrect test, placed in the 'describe "for signed-in users" do' is as follow:</p>
  
  <pre><code>describe "pagination" do
      before(:all) do 
        30.times { FactoryGirl.create(:micropost, user: user) }
      end
      after(:all) { user.feed.delete_all }
      page.should have_selector('div.pagination') }
  
      it "should list each micropost" do
        user.feed.paginate(page: 1).each do |user|
          page.should have_selector('li', text: user.name)
        end
      end
    end 
  </code></pre>
  
  <p>The test shows as passed no matter if I do page.should or page.should_not.</p>
  
  <p>Any 'hint/help' would be appreciated</p>