Sha256: 910a2c5fc21ff7fd5d491ba5a48541038661ec3b574f2365973acb21e9a9b624
Contents?: true
Size: 878 Bytes
Versions: 3
Compression:
Stored size: 878 Bytes
Contents
require 'spec_helper' require 'riak/client/beefcake/object_methods' require 'riak/client/beefcake/messages' describe Riak::Client::BeefcakeProtobuffsBackend::ObjectMethods do before :each do @client = Riak::Client.new @backend = Riak::Client::BeefcakeProtobuffsBackend.new(@client, @client.node) @bucket = Riak::Bucket.new(@client, "bucket") @object = Riak::RObject.new(@bucket, "bar") end describe "loading object data from the response" do it "should load the key" do content = double(:value => '', :vtag => nil, :content_type => nil, :links => nil, :usermeta => nil, :last_mod => nil, :indexes => nil, :charset => nil) pbuf = double(:vclock => nil, :content => [content], :value => nil, :key => 'akey') o = @backend.load_object(pbuf, @object) expect(o).to eq(@object) expect(o.key).to eq(pbuf.key) end end end
Version data entries
3 entries across 3 versions & 1 rubygems