Sha256: c09b9697409420e86fc77b76fd4b467e1dfaa58def8320ba20bea2deca722ed1
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
Given /^There are many snippets$/ do 100.times do |i| Snippet.create(:name => "snippet_#{i}", :content => "This is snippet #{i}") end end Given /^There are few snippets$/ do # end Then /^I should not see pagination controls$/ do response.body.should_not have_tag('div.pagination') end Then /^I should not see a depagination link$/ do response.body.should_not have_tag('div.depaginate') end Then /^I should see pagination controls$/ do response.body.should have_tag('div.pagination') end Then /^I should see page (\d+) of the results$/ do |p| response.body.should have_tag('div.pagination') do with_tag("span.current", :text => p) end end Then /^I should see a depagination link$/ do response.body.should have_tag('div.depaginate') do with_tag("a", :text => "show all") end end Then /^I should mention the request parameters$/ do puts "!! params: #{request.params.inspect}" true end Then /^I should see all the snippets$/ do Snippet.all.each do |snippet| response.body.should have_tag('tr.node') do with_tag("a", :text => snippet.name) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
radiantcms-couchrest_model-0.1.4 | features/step_definitions/admin/pagination_steps.rb |
radiant-0.9.1 | features/step_definitions/admin/pagination_steps.rb |