Permalink
Browse files

StringIOs have different names by default now

  • Loading branch information...
1 parent d840a1e commit c9c5227cb7f8061482834efb14889186345cf780 @jyurek jyurek committed Jan 29, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/storage/fog_test.rb
View
@@ -222,12 +222,12 @@ def custom_method
setup do
rebuild_model(@options.merge(:fog_host => 'http://example.com'))
@dummy = Dummy.new
- @dummy.avatar = StringIO.new('.')
+ @dummy.avatar = StringIO.new(".\n")
@dummy.save
end
should "provide a public url" do
- assert @dummy.avatar.url =~ /^http:\/\/example\.com\/avatars\/stringio\.txt\?\d*$/
+ assert @dummy.avatar.url =~ /^http:\/\/example\.com\/avatars\/data\.txt\?\d*$/
end
end
@@ -241,12 +241,12 @@ def custom_method
:storage => :fog
)
@dummy = Dummy.new
- @dummy.avatar = StringIO.new('.')
+ @dummy.avatar = StringIO.new(".\n")
@dummy.save
end
should "provide a public url" do
- assert @dummy.avatar.url =~ /^http:\/\/img[0123]\.example\.com\/avatars\/stringio\.txt\?\d*$/
+ assert @dummy.avatar.url =~ /^http:\/\/img[0123]\.example\.com\/avatars\/data\.txt\?\d*$/
end
end

0 comments on commit c9c5227

Please sign in to comment.