fix condition of assert_not_respond_to
* test/lib/test/unit/assertions.rb (assert_not_respond_to): fix condition to assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
495b2a246f
commit
5c79f6dbb7
@ -389,7 +389,7 @@ EOT
|
|||||||
msg = message(msg) {
|
msg = message(msg) {
|
||||||
"Expected #{mu_pp(obj)} (#{obj.class}) to not respond to ##{meth}#{" privately" if priv[0]}"
|
"Expected #{mu_pp(obj)} (#{obj.class}) to not respond to ##{meth}#{" privately" if priv[0]}"
|
||||||
}
|
}
|
||||||
return assert obj.respond_to?(meth, *priv), msg
|
return assert !obj.respond_to?(meth, *priv), msg
|
||||||
end
|
end
|
||||||
#get rid of overcounting
|
#get rid of overcounting
|
||||||
if caller_locations(1, 1)[0].path.start_with?(MINI_DIR)
|
if caller_locations(1, 1)[0].path.start_with?(MINI_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user