diff --git a/features/step_definitions/image_steps.rb b/features/step_definitions/image_steps.rb index dd48606e19..023a10d2c2 100644 --- a/features/step_definitions/image_steps.rb +++ b/features/step_definitions/image_steps.rb @@ -19,11 +19,9 @@ Then /^I should not see the "(.+)" image(?: within "([^\"]*)")?$/ do |image, sel page.should have_no_xpath(search_string) end -Then /^I should see an image(?: within "(.+?)")$/ do |selector| - with_scope(selector) do - img = find :css, 'img' - img.should be_present - img.should be_visible - end +Then /^I should see an image$/ do + img = find :css, 'img' + img.should be_present + img.should be_visible end