Skip to content

Commit

Permalink
Refactor: inline temp
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishr committed Jan 16, 2020
1 parent d1665a3 commit 3ec6ac9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/acceptance/stubbing_nil_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ def test_should_default_to_prevent_stubbing_method_on_non_mock_object

def test_should_allow_stubbing_method_on_non_nil_object
Mocha.configure { |c| c.stubbing_method_on_nil = :prevent }
object = Object.new
test_result = run_as_test do
object.stubs(:stubbed_method)
Object.new.stubs(:stubbed_method)
end
assert_passed(test_result)
end
Expand Down

0 comments on commit 3ec6ac9

Please sign in to comment.