Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning for assert_nil in ClassMethodTest #309

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions test/unit/class_method_test.rb
Expand Up @@ -179,10 +179,9 @@ def test_should_call_stubbee_reset_mocha_if_no_expectations_remaining
def test_should_return_mock_for_stubbee
mocha = Object.new
stubbee = Object.new
stubbee.define_instance_accessor(:mocha) { mocha }
stubbee.mocha = nil
stubbee.define_instance_method(:mocha) { mocha }
method = ClassMethod.new(stubbee, :method_name)
assert_equal stubbee.mocha, method.mock
assert_equal mocha, method.mock
end

def test_should_not_match_if_other_object_has_a_different_class
Expand Down