Skip to content
Browse files

Fix failing spec - expect img tag which contains image-with-dashes.jpg.

  • Loading branch information...
1 parent 77d5016 commit 40b68ae6e1b6c5b94bc706eee0c4b6a80a9bc1d1 @ugisozols ugisozols committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 images/spec/requests/refinery/admin/images_spec.rb
View
2 images/spec/requests/refinery/admin/images_spec.rb
@@ -31,7 +31,7 @@ module Refinery
click_button ::I18n.t('save', :scope => 'refinery.admin.form_actions')
end
page.should have_content(::I18n.t("uploaded_successfully", :scope => "refinery.admin.images.form"))
- page.should have_content("image-with-dashes.jpg")
+ page.should have_selector("img[src*='image-with-dashes.jpg']")
Refinery::Image.count.should == 1
end

1 comment on commit 40b68ae

@parndt
Refinery member
parndt commented on 40b68ae Aug 27, 2012

👍

Please sign in to comment.
Something went wrong with that request. Please try again.