Sha256: 7242a3b4a4ba9564d8542c0897538ffbe5ea37d3c71fe5a7b2a3c743311be5a1
Contents?: true
Size: 872 Bytes
Versions: 6
Compression:
Stored size: 872 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 "loads 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
6 entries across 6 versions & 2 rubygems