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

Commit

Permalink
save content type of the file with fog storage engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ralph authored and Jon Yurek committed Jan 16, 2012
1 parent 839b98c commit 201f02e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/storage/fog_test.rb
Expand Up @@ -110,6 +110,13 @@ class FogTest < Test::Unit::TestCase
directory.destroy
end

should "pass the content type to the Fog::Storage::AWS::Files instance" do
Fog::Storage::AWS::Files.any_instance.expects(:create).with do |hash|
hash[:content_type]
end
@dummy.save
end

context "without a bucket" do
setup do
@connection.directories.get(@fog_directory).destroy
Expand Down

0 comments on commit 201f02e

Please sign in to comment.