jnicklas/carrierwave — Issue #592: Remote Fog Specs
Author: bensie
Created: 2012-01-20 23:55:56+00:00
State: open

Trying to get all the remote Fog specs passing, but running into a few failures due to file content_type coming back nil on AWS, differently than expected on RS, and I don't have a Google Storage account:

```
2) CarrierWave::Storage::Fog with a valid File object it should behave like AWS storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: nil (using ==)
Shared Example Group: "AWS storage" called from ./spec/storage/fog_helper.rb:216
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'

3) CarrierWave::Storage::Fog with a valid path it should behave like AWS storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: nil (using ==)
Shared Example Group: "AWS storage" called from ./spec/storage/fog_helper.rb:225
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'

4) CarrierWave::Storage::Fog with a valid Pathname it should behave like AWS storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: nil (using ==)
Shared Example Group: "AWS storage" called from ./spec/storage/fog_helper.rb:234
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'

5) CarrierWave::Storage::Fog with a valid File object it should behave like Rackspace storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: "text/html; charset=UTF-8" (using ==)
Shared Example Group: "Rackspace storage" called from ./spec/storage/fog_helper.rb:216
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'

6) CarrierWave::Storage::Fog with a valid path it should behave like Rackspace storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: "text/html; charset=UTF-8" (using ==)
Shared Example Group: "Rackspace storage" called from ./spec/storage/fog_helper.rb:225
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'

7) CarrierWave::Storage::Fog with a valid Pathname it should behave like Rackspace storage#store! should have a content_type
Failure/Error: @fog_file.content_type.should == 'image/jpeg'
expected: "image/jpeg"
got: "text/html; charset=UTF-8" (using ==)
Shared Example Group: "Rackspace storage" called from ./spec/storage/fog_helper.rb:234
# ./spec/storage/fog_helper.rb:48:in `block (5 levels) in fog_tests'
```

@geemus Might you have some time to see what's going on here? Please work from 0.6-stable and ignore the failing specs surrounding XML serialization.

Thanks!