spec/unit/axiom/aggregate/mean/class_methods/finalize_spec.rb in axiom-0.1.0 vs spec/unit/axiom/aggregate/mean/class_methods/finalize_spec.rb in axiom-0.1.1

- old
+ new

@@ -4,13 +4,13 @@ describe Aggregate::Mean, '.finalize' do subject { object.finalize(accumulator) } let(:object) { described_class } - let(:accumulator) { [ count, mean ] } - let(:count) { mock('Count') } - let(:mean) { mock('Mean') } + let(:accumulator) { [count, mean] } + let(:count) { double('Count') } + let(:mean) { double('Mean') } it_should_behave_like 'an idempotent method' - it { should equal(mean) } + it { should be(mean) } end