spec/contrast_with_spec.rb in contrast-0.2.2 vs spec/contrast_with_spec.rb in contrast-1.0.0
- old
+ new
@@ -32,11 +32,11 @@
second = fields.to_object
result = [:city]
Contrast::Detective.any_instance.expects(:examine).
with(first, second).returns(result)
- exception_thrown = -> { first.contrast_with!(second, fields) }.
+ exception_thrown = lambda { first.contrast_with!(second, fields) }.
call_safely { true }
exception_thrown.must_equal true
end
@@ -46,10 +46,10 @@
second = fields.to_object
result = []
Contrast::Detective.any_instance.expects(:examine).
with(first, second).returns(result)
- exception_thrown = -> { first.contrast_with!(second, fields); false }.
+ exception_thrown = lambda { first.contrast_with!(second, fields); false }.
call_safely { true }
exception_thrown.must_equal false
end