mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Rackspace|Storage] This tests consistently fails on either ruby 1.8.7 or ruby 1.9.3 because hash order is indeterminate. I believe the spirt of this test is to ensure that only one header value is generated and thus I have updated the test to reflect that.
This commit is contained in:
parent
361d278347
commit
1978c8a122
1 changed files with 4 additions and 2 deletions
|
@ -113,9 +113,11 @@ Shindo.tests('Fog::Rackspace::Storage | file', ['rackspace']) do
|
|||
|
||||
@instance.metadata['foo-bar'] = 'baz'
|
||||
@instance.metadata[:'foo_bar'] = 'bref'
|
||||
tests("should only support one value per metadata key").returns('bref') do
|
||||
tests("should only support one value per metadata key").returns(true) do
|
||||
@instance.save
|
||||
object_meta_attributes['X-Object-Meta-Foo-Bar']
|
||||
metadata = object_meta_attributes
|
||||
returns(1) { metadata.size }
|
||||
metadata.has_key? 'X-Object-Meta-Foo-Bar'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue