Commit 201f02e3 by ralph Committed by Jon Yurek

save content type of the file with fog storage engine

parent 839b98c6
......@@ -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
......
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