Sha256: 3a9c39b2cb33b59b67db17c949705b329682cb9e5046d5789d9a0f59cbc8d48e
Contents?: true
Size: 1.13 KB
Versions: 12
Compression:
Stored size: 1.13 KB
Contents
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper') feature 'Users' do background do 1.upto(100) {|i| User.create! :name => "user#{'%03d' % i}" } end scenario 'navigating by pagination links' do visit users_path within 'nav.pagination' do within 'span.page.current' do page.should have_content '1' end within 'span.next' do click_link 'Next ›' end end within 'nav.pagination' do within 'span.page.current' do page.should have_content '2' end within 'span.last' do click_link 'Last »' end end within 'nav.pagination' do within 'span.page.current' do page.should have_content '4' end within 'span.prev' do click_link '‹ Prev' end end within 'nav.pagination' do within 'span.page.current' do page.should have_content '3' end within 'span.first' do click_link '« First' end end within 'nav.pagination' do within 'span.page.current' do page.should have_content '1' end end end end
Version data entries
12 entries across 12 versions & 4 rubygems