Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Fixing whitespace issue 💣
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Jun 20, 2011
1 parent f033d95 commit 26ef20e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/storage_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ def rails_env(env)
Object.const_set(:Rails, stub('Rails', :env => env))
end
end

context "filesystem" do
setup do
rebuild_model :styles => { :thumbnail => "25x25#" }
@dummy = Dummy.create!

@dummy.avatar = File.open(File.join(File.dirname(__FILE__), "fixtures", "5k.png"))
end

should "allow file assignment" do
assert @dummy.save
end

should "store the original" do
@dummy.save
assert File.exists?(@dummy.avatar.path)
end

should "store the thumbnail" do
@dummy.save
assert File.exists?(@dummy.avatar.path(:thumbnail))
Expand Down Expand Up @@ -167,7 +167,7 @@ def rails_env(env)
setup do
AWS::S3::Base.stubs(:establish_connection!)
rebuild_model :storage => :s3,
:s3_credentials => {},
:s3_credentials => {},
:bucket => "bucket",
:path => ":attachment/:basename.:extension",
:url => ":asset_host"
Expand Down

0 comments on commit 26ef20e

Please sign in to comment.