We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assert_not_same
1 parent ecc1a05 commit e5dc4faCopy full SHA for e5dc4fa
1 file changed
src/test/ruby/test_helper.rb
@@ -93,6 +93,12 @@ def assert_nothing_raised
93
end
94
95
96
+ unless method_defined?(:assert_not_same)
97
+ def assert_not_same(expected, actual)
98
+ assert ! expected.equal?(actual), "expected: #{expected} to be same as: #{actual} but did"
99
+ end
100
101
+
102
def self.disable_security_restrictions!; end # do nothing on MRI
103
104
@@security_restrictions = nil
0 commit comments