features/step_definitions/asset_steps.rb in activeadmin-1.0.0.pre1 vs features/step_definitions/asset_steps.rb in activeadmin-1.0.0.pre2
- old
+ new
@@ -1,15 +1,15 @@
Then /^I should see the css file "([^"]*)"$/ do |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|
- expect(page).to have_xpath("//link[contains(@href, /stylesheets/#{path}) and contains(@media, #{media})]", visible: false)
+ expect(page).to have_xpath("//link[contains(@href, '#{path}') and contains(@media, '#{media}')]", visible: false)
end
Then /^I should see the js file "([^"]*)"$/ do |path|
- expect(page).to have_xpath("//script[contains(@src, /javascripts/#{path})]", visible: false)
+ expect(page).to have_xpath("//script[contains(@src, '#{path}')]", visible: false)
end
Then /^I should see the favicon "([^"]*)"$/ do |path|
- expect(page).to have_xpath("//link[contains(@href, path)]", visible: false)
+ expect(page).to have_xpath("//link[contains(@href, '#{path}')]", visible: false)
end