Sha256: fcf754a5e8c3b79c87949404b88964c411caed904832e254c927cf995b2d4bda
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 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 'sends increments to the parent' do expect(parent).to receive(:increment). with(counter_name, 1) subject.increment end end
Version data entries
5 entries across 5 versions & 1 rubygems