features/step_definitions/asset_steps.rb in activeadmin-0.3.4 vs features/step_definitions/asset_steps.rb in activeadmin-0.4.0
- old
+ new
@@ -1,6 +1,10 @@
Then /^I should see the css file "([^"]*)"$/ do |path|
- page.should have_xpath("//link[contains(@href, /stylesheets/#{path})]")
+ step %{I should see the css file "#{path}" of media "screen"}
+end
+
+Then /^I should see the css file "([^"]*)" of media "([^"]*)"$/ do |path, media|
+ page.should have_xpath("//link[contains(@href, /stylesheets/#{path}) and contains(@media, #{media})]")
end
Then /^I should see the js file "([^"]*)"$/ do |path|
page.should have_xpath("//script[contains(@src, /javascripts/#{path})]")
end