spec/unit/publishers/s3_publisher_spec.rb in omnibus-5.3.0 vs spec/unit/publishers/s3_publisher_spec.rb in omnibus-5.4.0

- old
+ new

@@ -49,11 +49,11 @@ end it 'uploads the metadata' do expect(subject).to receive(:store_object).with( 'ubuntu/14.04/x86_64/chef.deb/chef.deb.metadata.json', - package.metadata.to_json, + FFI_Yajl::Encoder.encode(package.metadata.to_hash, pretty: true), nil, 'private', ).once subject.publish @@ -74,11 +74,11 @@ subject { described_class.new(path, acl: 'public') } it 'sets the access control to public_read' do expect(subject).to receive(:store_object).with( 'ubuntu/14.04/x86_64/chef.deb/chef.deb.metadata.json', - package.metadata.to_json, + FFI_Yajl::Encoder.encode(package.metadata.to_hash, pretty: true), nil, 'public-read', ).once subject.publish @@ -89,10 +89,10 @@ subject { described_class.new(path, acl: 'baconbits') } it 'sets the access control to private' do expect(subject).to receive(:store_object).with( 'ubuntu/14.04/x86_64/chef.deb/chef.deb.metadata.json', - package.metadata.to_json, + FFI_Yajl::Encoder.encode(package.metadata.to_hash, pretty: true), nil, 'private', ).once subject.publish