spec/unit/veritas/algebra/summarization/summarizers_spec.rb in veritas-0.0.3 vs spec/unit/veritas/algebra/summarization/summarizers_spec.rb in veritas-0.0.4
- old
+ new
@@ -1,12 +1,14 @@
+# encoding: utf-8
+
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(:object) { described_class.new(operand, operand, summarizers) }
+ let(:object) { described_class.new(operand, TABLE_DEE, summarizers) }
it_should_behave_like 'an idempotent method'
it { should equal(summarizers) }
end