Commit c9c5227c by Jon Yurek

StringIOs have different names by default now

parent d840a1ef
...@@ -222,12 +222,12 @@ class FogTest < Test::Unit::TestCase ...@@ -222,12 +222,12 @@ class FogTest < Test::Unit::TestCase
setup do setup do
rebuild_model(@options.merge(:fog_host => 'http://example.com')) rebuild_model(@options.merge(:fog_host => 'http://example.com'))
@dummy = Dummy.new @dummy = Dummy.new
@dummy.avatar = StringIO.new('.') @dummy.avatar = StringIO.new(".\n")
@dummy.save @dummy.save
end end
should "provide a public url" do 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
end end
...@@ -241,12 +241,12 @@ class FogTest < Test::Unit::TestCase ...@@ -241,12 +241,12 @@ class FogTest < Test::Unit::TestCase
:storage => :fog :storage => :fog
) )
@dummy = Dummy.new @dummy = Dummy.new
@dummy.avatar = StringIO.new('.') @dummy.avatar = StringIO.new(".\n")
@dummy.save @dummy.save
end end
should "provide a public url" do 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
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment