Skip to content

Commit

Permalink
[test] some versions miss assert_not_same method
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Nov 4, 2016
1 parent ecc1a05 commit e5dc4fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ruby/test_helper.rb
Expand Up @@ -93,6 +93,12 @@ def assert_nothing_raised
end
end

unless method_defined?(:assert_not_same)
def assert_not_same(expected, actual)
assert ! expected.equal?(actual), "expected: #{expected} to be same as: #{actual} but did"
end
end

def self.disable_security_restrictions!; end # do nothing on MRI

@@security_restrictions = nil
Expand Down

0 comments on commit e5dc4fa

Please sign in to comment.