features/step_definitions/flash_steps.rb in activeadmin-0.3.4 vs features/step_definitions/flash_steps.rb in activeadmin-0.4.0
- old
+ new
@@ -1,3 +1,11 @@
Then /^I should see a flash with "([^"]*)"$/ do |text|
- Then %{I should see "#{text}"}
+ page.should have_content(text)
+end
+
+Then /^I should see a successful create flash$/ do
+ page.should 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/)
end