From 201f02e324a5577b888d7b3ee8c8fbacff9966ae Mon Sep 17 00:00:00 2001 From: ralph Date: Mon, 16 Jan 2012 13:58:50 +0100 Subject: [PATCH] save content type of the file with fog storage engine --- test/storage/fog_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/storage/fog_test.rb b/test/storage/fog_test.rb index f25b52364..b5c97a40d 100644 --- a/test/storage/fog_test.rb +++ b/test/storage/fog_test.rb @@ -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