Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

exclude rbx properly

  • Loading branch information...
commit d350493de2432e8a20bc847a5c55a6ebc257f702 1 parent 32ab940
@ConradIrwin ConradIrwin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/test_method.rb
View
5 test/test_method.rb
@@ -120,13 +120,12 @@ class << self; undef bar; end
m.name.should == "gag"
end
- if defined? BasicObject
+ if defined?(BasicObject) && !Pry::Helpers::BaseHelpers.rbx? # rubinius issue 1921
it "should find the right method from a BasicObject" do
a = Class.new(BasicObject) { def gag; ::Kernel.binding; end; def self.line; __LINE__; end }
m = Pry::Method.from_binding(a.new.gag)
-
- m.owner.should == a unless Pry::Helpers::BaseHelpers.rbx? # rubinius issue 1921
+ m.owner.should == a
m.source_file.should == __FILE__
m.source_line.should == a.line
end
Please sign in to comment.
Something went wrong with that request. Please try again.