specs/constraints/constraints.rb in gecoder-0.6.0 vs specs/constraints/constraints.rb in gecoder-0.6.1
- old
+ new
@@ -31,11 +31,11 @@
@con = Gecode::Constraints::Int::CompositeStub.new(Gecode::Model.new, {})
end
it 'should raise error when calling #constrain_equal' do
lambda do
- @con.instance_eval{ constrain_equal(nil, {}) }
+ @con.instance_eval{ constrain_equal(nil, {}, false) }
end.should raise_error(NoMethodError)
end
end
describe Gecode::Constraints::Constraint, ' (not subclassed)' do
@@ -58,10 +58,10 @@
describe Gecode::Constraints::CompositeExpression do
it 'should raise error if a method doesn\'t exist' do
expression = Gecode::Constraints::CompositeExpression.new(
Gecode::Constraints::Int::Expression, Gecode::FreeIntVar,
- Gecode::Model.new, {:lhs => nil, :negate => false}){}
+ lambda{ }, Gecode::Model.new, {:lhs => nil, :negate => false}){}
lambda do
expression.this_method_does_not_exist
end.should raise_error(NoMethodError)
end
end
\ No newline at end of file