Permalink
Browse files

Fix test failing under MacRuby.

An instance of Object reports its class as NSObject.
  • Loading branch information...
1 parent 0486215 commit 3471145c13b74895b3e31520fe5653ca86958a70 @floehopper floehopper committed May 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/object_inspect_test.rb
@@ -10,7 +10,7 @@ class << object
attr_accessor :attribute
end
object.attribute = 'instance_variable'
- assert_match Regexp.new("^#<Object:0x[0-9A-Fa-f]{1,8}.*>$"), object.mocha_inspect
+ assert_match Regexp.new("^#<#{object.class}:0x[0-9A-Fa-f]{1,8}.*>$"), object.mocha_inspect
assert_no_match(/instance_variable/, object.mocha_inspect)
end

0 comments on commit 3471145

Please sign in to comment.