Sha256: 13226bb6a6ac2bdd69968612d62f764916029498b94b9e13903567b41e7669a5
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
# encoding: UTF-8 require 'spec_helper' feature 'Users' do background do User.delete_all 1.upto(100) {|i| User.create! :name => "user#{'%03d' % i}" } end scenario 'navigating by pagination links' do visit '/users' 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
6 entries across 6 versions & 2 rubygems