We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c855eb commit fafdd1eCopy full SHA for fafdd1e
src/test/ruby/test_helper.rb
@@ -52,6 +52,22 @@ def skip(msg = nil)
52
end
53
54
55
+ unless method_defined?(:assert_not_equal)
56
+ def assert_not_equal(expected, actual)
57
+ assert expected != actual, "expected: #{expected} to not equal: #{actual} but did"
58
+ end
59
60
+
61
+ unless method_defined?(:assert_nothing_raised)
62
+ def assert_nothing_raised
63
+ begin
64
+ yield
65
+ rescue => e
66
+ assert false, "unexpected error raised: #{e.inspect}"
67
68
69
70
71
def self.disable_security_restrictions!; end # do nothing on MRI
72
73
def self.disable_security_restrictions!
0 commit comments