Skip to content

Commit

Permalink
added some tests for async image uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
jipiboily committed Jun 9, 2012
1 parent 901bc17 commit 8a76e35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/spec/requests/refinery/admin/images_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ module Refinery
attach_file "image_image", Refinery.roots(:'refinery/images').
join("spec/fixtures/image-with-dashes.jpg")
click_button ::I18n.t('save', :scope => 'refinery.admin.form_actions')
page.should have_content(::I18n.t("uploaded_successfully", :scope => "refinery.admin.images.form"))
page.should have_content("image-with-dashes.jpg")
end
find(".ui-icon-closethick").click

page.should have_content(::I18n.t('created', :scope => 'refinery.crudify', :what => "'Image With Dashes'"))
Refinery::Image.count.should == 1
Expand Down

0 comments on commit 8a76e35

Please sign in to comment.