features/step_definitions/dashboard_steps.rb in yousty-activeadmin-1.0.4.pre vs features/step_definitions/dashboard_steps.rb in yousty-activeadmin-1.0.5.pre

- old
+ new

@@ -5,11 +5,11 @@ Then /^I should not see the default welcome message$/ do step %{I should not see "Welcome to Active Admin"} end Then /^I should see a dashboard widget "([^"]*)"$/ do |name| - page.should have_css('.dashboard .panel h3', :text => name) + expect(page).to have_css '.dashboard .panel h3', text: name end Then /^I should not see a dashboard widget "([^"]*)"$/ do |name| - page.should_not have_css('.dashboard .panel h3', :text => name) + expect(page).to_not have_css '.dashboard .panel h3', text: name end