spec/cache_spec.rb in alephant-cache-1.0.0 vs spec/cache_spec.rb in alephant-cache-1.1.0

- old
+ new

@@ -67,10 +67,11 @@ describe "get(id)" do it "gets bucket path/id content data" do s3_object_collection = double() s3_object_collection.should_receive(:read).and_return("content") s3_object_collection.should_receive(:content_type).and_return("foo/bar") + s3_object_collection.should_receive(:metadata).and_return({ :foo => :bar}) s3_bucket = double() s3_bucket.should_receive(:objects).and_return( { "path/id" => s3_object_collection @@ -82,10 +83,11 @@ instance = subject.new(id, path) object_hash = instance.get(id) expected_hash = { :content => "content", - :content_type => "foo/bar" + :content_type => "foo/bar", + :meta => { :foo => :bar } } expect(object_hash).to eq(expected_hash) end end