Permalink
Browse files

Object#__id__ is not a primitive in Rubinius, test Array#size instead.

  • Loading branch information...
1 parent a25868b commit dd77e1b2ad564c35cfbe084b2ce9dc9bf5e9369f @oggy committed Mar 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/adapter_spec.rb
View
@@ -532,7 +532,7 @@ def load_source(source)
end
it "should return nil for primitive methods (MRI CBODY)" do
- method = Object.instance_method(:__id__)
+ method = Array.instance_method(:size)
@adapter.source_location(method).should == nil
end

0 comments on commit dd77e1b

Please sign in to comment.