Sha256: 79928776d39402279ef252a082bb6d502a10a1f26e780132e1349a605bddf9ba
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 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('#_paginated_section').find('.next_page').click page.should have_no_selector('.previous_page.disabled') find('#signin').click visit(posts_url) page.should have_selector('#upcomingpage_paginated_section .previous_page.disabled') find('#upcomingpage_paginated_section').find('.next_page').click page.should have_no_selector('#upcomingpage_paginated_section .previous_page.disabled') page.should have_selector('#page_paginated_section .previous_page.disabled') find('#page_paginated_section').find('.next_page').click page.should have_no_selector('#page_paginated_section .previous_page.disabled') end end
Version data entries
4 entries across 4 versions & 1 rubygems