test/acceptance/yielding_test.rb in mocha-1.11.0 vs test/acceptance/yielding_test.rb in mocha-1.11.1

- old
+ new

@@ -22,12 +22,14 @@ assert_passed(test_result) end def test_raises_local_jump_error_if_instructed_to_yield_but_no_block_given test_result = run_as_test do - m = mock('m') - m.stubs(:foo).yields - assert_raises(LocalJumpError) { m.foo } + Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do + m = mock('m') + m.stubs(:foo).yields + assert_raises(LocalJumpError) { m.foo } + end end assert_passed(test_result) end def test_yields_when_block_expected_and_block_given