Sha256: 98187e3b8e03d89eaf761afb229cf74de7e34ef46f65da9c1cad6f0a28bdf773
Contents?: true
Size: 1.18 KB
Versions: 6
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' describe 'paginating without javascript', :type => :request, :driver => :rack_test do it 'still paginates' do visit(root_url) # goes to welcome page page.should have_selector('#welcomepagetitle') page.should have_no_selector('#aboutpagetitle') click_link 'About' page.should have_selector('#aboutpagetitle') page.should have_no_selector('#readmepagetitle') click_link 'Readme' page.should have_selector('#readmepagetitle') page.should have_no_selector('#aboutpagetitle') end it 'still paginates nested and multiple paginated sections' do visit(changelog_url) page.should have_selector('.previous_page.disabled') find('#page').find('.next_page').click page.should have_no_selector('.previous_page.disabled') find('#signin').click visit(posts_url) page.should have_selector('#upcomingpage .previous_page.disabled') find('#upcomingpage').find('.next_page').click page.should have_no_selector('#upcomingpage .previous_page.disabled') page.should have_selector('#page .previous_page.disabled') find('#page').find('.next_page').click page.should have_no_selector('#page .previous_page.disabled') end end
Version data entries
6 entries across 6 versions & 1 rubygems