spec/unit/veritas/optimizer/algebra/projection/unoptimized_operand/optimizable_spec.rb in veritas-optimizer-0.0.3 vs spec/unit/veritas/optimizer/algebra/projection/unoptimized_operand/optimizable_spec.rb in veritas-optimizer-0.0.4
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: utf-8
+
require 'spec_helper'
describe Optimizer::Algebra::Projection::UnoptimizedOperand, '#optimizable?' do
subject { object.optimizable? }
@@ -11,10 +13,10 @@
before do
object.operation.should be_kind_of(Algebra::Projection)
end
context 'when the operand is optimizable' do
- let(:operand) { base.restrict(Logic::Proposition::Tautology.instance) }
+ let(:operand) { base.restrict { Function::Proposition::Tautology.instance } }
it { should be(true) }
end
context 'when the operand is not optimizable' do