Commit 26ef20e1 by Prem Sichanugrist

Fixing whitespace issue 💣

parent f033d952
...@@ -7,7 +7,7 @@ class StorageTest < Test::Unit::TestCase ...@@ -7,7 +7,7 @@ class StorageTest < Test::Unit::TestCase
Object.const_set(:Rails, stub('Rails', :env => env)) Object.const_set(:Rails, stub('Rails', :env => env))
end end
end end
context "filesystem" do context "filesystem" do
setup do setup do
rebuild_model :styles => { :thumbnail => "25x25#" } rebuild_model :styles => { :thumbnail => "25x25#" }
...@@ -15,16 +15,16 @@ class StorageTest < Test::Unit::TestCase ...@@ -15,16 +15,16 @@ class StorageTest < Test::Unit::TestCase
@dummy.avatar = File.open(File.join(File.dirname(__FILE__), "fixtures", "5k.png")) @dummy.avatar = File.open(File.join(File.dirname(__FILE__), "fixtures", "5k.png"))
end end
should "allow file assignment" do should "allow file assignment" do
assert @dummy.save assert @dummy.save
end end
should "store the original" do should "store the original" do
@dummy.save @dummy.save
assert File.exists?(@dummy.avatar.path) assert File.exists?(@dummy.avatar.path)
end end
should "store the thumbnail" do should "store the thumbnail" do
@dummy.save @dummy.save
assert File.exists?(@dummy.avatar.path(:thumbnail)) assert File.exists?(@dummy.avatar.path(:thumbnail))
...@@ -167,7 +167,7 @@ class StorageTest < Test::Unit::TestCase ...@@ -167,7 +167,7 @@ class StorageTest < Test::Unit::TestCase
setup do setup do
AWS::S3::Base.stubs(:establish_connection!) AWS::S3::Base.stubs(:establish_connection!)
rebuild_model :storage => :s3, rebuild_model :storage => :s3,
:s3_credentials => {}, :s3_credentials => {},
:bucket => "bucket", :bucket => "bucket",
:path => ":attachment/:basename.:extension", :path => ":attachment/:basename.:extension",
:url => ":asset_host" :url => ":asset_host"
......
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