features/step_definitions/flash_steps.rb in activeadmin-0.6.6 vs features/step_definitions/flash_steps.rb in activeadmin-1.0.0.pre1
- old
+ new
@@ -1,11 +1,11 @@
Then /^I should see a flash with "([^"]*)"$/ do |text|
- page.should have_content(text)
+ expect(page).to have_content text
end
Then /^I should see a successful create flash$/ do
- page.should have_css('div.flash_notice', :text => /was successfully created/)
+ expect(page).to have_css 'div.flash_notice', text: /was successfully created/
end
Then /^I should not see a successful create flash$/ do
- page.should_not have_css('div.flash_notice', :text => /was successfully created/)
+ expect(page).to_not have_css 'div.flash_notice', text: /was successfully created/
end