diff --git a/test/acceptance/mock_test.rb b/test/acceptance/mock_test.rb index a50b8023..30b177c5 100644 --- a/test/acceptance/mock_test.rb +++ b/test/acceptance/mock_test.rb @@ -44,11 +44,9 @@ def test_should_build_string_named_mock_and_explicitly_add_an_expectation_which_ def test_should_build_symbol_named_mock_and_explicitly_add_an_expectation_which_is_satisfied test_result = run_as_test do Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do - DeprecationDisabler.disable_deprecations do - foo = mock(:foo) - foo.expects(:bar) - foo.bar - end + foo = mock(:foo) + foo.expects(:bar) + foo.bar end end assert_passed(test_result) @@ -109,11 +107,9 @@ def test_should_build_string_named_mock_incorporating_two_expectations_which_are def test_should_build_symbol_named_mock_incorporating_two_expectations_which_are_satisifed test_result = run_as_test do Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do - DeprecationDisabler.disable_deprecations do - foo = mock(:foo, :bar => 'bar', :baz => 'baz') - foo.bar - foo.baz - end + foo = mock(:foo, :bar => 'bar', :baz => 'baz') + foo.bar + foo.baz end end assert_passed(test_result)