features/step_definitions/pagination_steps.rb in activeadmin-0.6.6 vs features/step_definitions/pagination_steps.rb in activeadmin-1.0.0.pre1
- old
+ new
@@ -1,8 +1,7 @@
Then /^I should not see pagination$/ do
- page.should_not have_css(".pagination")
+ expect(page).to_not have_css '.pagination'
end
Then /^I should see pagination with (\d+) pages$/ do |count|
- step %{I should see "#{count}" within ".pagination a"}
- step %{I should not see "#{count.to_i + 1}" within ".pagination a"}
+ expect(page).to have_css '.pagination span.page', count: count
end