spec/unit/axiom/algebra/summarization/summarizers_spec.rb in axiom-0.1.0 vs spec/unit/axiom/algebra/summarization/summarizers_spec.rb in axiom-0.1.1
- old
+ new
@@ -3,13 +3,13 @@
require 'spec_helper'
describe Algebra::Summarization, '#summarizers' do
subject { object.summarizers }
- let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) }
- let(:summarizers) { { :test => lambda { |acc, tuple| 1 } } }
+ let(:operand) { Relation.new([[:id, Integer]], [[1], [2]]) }
+ let(:summarizers) { { test: ->(acc, tuple) { 1 } } }
let(:object) { described_class.new(operand, TABLE_DEE, summarizers) }
it_should_behave_like 'an idempotent method'
- it { should equal(summarizers) }
+ it { should be(summarizers) }
end