test/rails/active_support/test_expectations.rb in minitest-rails-2.1.1 vs test/rails/active_support/test_expectations.rb in minitest-rails-2.2.0

- old
+ new

@@ -4,18 +4,18 @@ class TestActiveSupportExpectations < ActiveSupport::TestCase def test_must_change counter = 0 - lambda { counter += 1 }.must_change "counter", +1 + value { counter += 1 }.must_change "counter", +1 - lambda { counter += 3 }.must_change "counter", +3 + value { counter += 3 }.must_change "counter", +3 - lambda { counter -= 1 }.must_change "counter", -1 + value { counter -= 1 }.must_change "counter", -1 end def test_wont_change counter = 0 - lambda { counter = 0 }.wont_change "counter" + value { counter = 0 }.wont_change "counter" end end