Sha256: 752a2d5248f661eb37e8ade5935a2ad4d02fd1e63761bdcd95cf4ee337e6524a
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
require 'spec_helper' require_relative 'shared_examples' describe Riak::Crdt::InnerCounter do let(:parent){ double 'parent' } let(:counter_name){ 'counter name' } subject do described_class.new(parent, 0).tap do |c| c.name = counter_name end end include_examples 'Counter CRDT' it 'should send increments to the parent' do expect(parent).to receive(:increment). with(counter_name, 1) subject.increment end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riak-client-2.0.0 | spec/riak/crdt/inner_counter_spec.rb |
riak-client-2.0.0.rc2 | spec/riak/crdt/inner_counter_spec.rb |
riak-client-2.0.0.rc1 | spec/riak/crdt/inner_counter_spec.rb |