diff --git a/test/test_method.rb b/test/test_method.rb index e673d1b3..17e781aa 100644 --- a/test/test_method.rb +++ b/test/test_method.rb @@ -120,13 +120,12 @@ describe Pry::Method do 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