Sha256: d2ba34b9925d6e6644a38e4ee711df6465c061045c29736ec61f1b4bc1c7482d
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' require 'riak' describe 'Preflist', integration: true, test_client: true do let(:bucket){ random_bucket } let(:robject) do bucket.get_or_new(random_key).tap do |robj| robj.data = 'asdf' robj.store end end matcher :be_a_preflist do match do |actual| actual.is_a?(Array) && actual.first.is_a?(Riak::PreflistItem) end end it 'is available from RObjects' do begin expect(robject.preflist).to be_a_preflist rescue Riak::ProtobuffsErrorResponse skip('preflists are not supported') end end it 'is available from Buckets' do begin expect(bucket.get_preflist robject.key).to be_a_preflist rescue Riak::ProtobuffsErrorResponse skip('preflists are not supported') end end it 'is available from the Client' do begin expect(test_client.get_preflist bucket.name, robject.key).to be_a_preflist rescue Riak::ProtobuffsErrorResponse skip('preflists are not supported') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riak-client-2.5.0 | spec/integration/riak/preflist_spec.rb |