spec/unit/axiom/algebra/summarization/summaries/summarize_by_spec.rb in axiom-0.1.1 vs spec/unit/axiom/algebra/summarization/summaries/summarize_by_spec.rb in axiom-0.2.0
- old
+ new
@@ -13,16 +13,16 @@
let(:tuple) { Tuple.new(tuple_header, [1, 'Dan Kubb']) }
it_should_behave_like 'a command method'
it 'passes the tuple to the aggregate function' do
- summarizer.should_receive(:call).with(nil, tuple)
+ expect(summarizer).to receive(:call).with(nil, tuple)
subject
end
it 'aggregates the value returned by the summarizer' do
key, value = subject.to_hash.first
- key.should eql(:count)
- value.should be_instance_of(Algebra::Summarization::Summary)
- value.call(tuple.project(header)).should eql(1)
+ expect(key).to eql(:count)
+ expect(value).to be_instance_of(Algebra::Summarization::Summary)
+ expect(value.call(tuple.project(header))).to eql(1)
end
end