1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Disable spec to work around rubinius/rubinius#2871

This commit is contained in:
Ryan Fitzgerald 2014-01-19 20:48:31 -08:00
parent 4aed2ab1c0
commit b39ba9725b

View file

@ -144,13 +144,16 @@ describe Pry::Method do
m.name.should == "gag"
end
it "should find the right method from a BasicObject" do
a = Class.new(BasicObject) { def gag; ::Kernel.binding; end; def self.line; __LINE__; end }
# Temporarily disabled to work around rubinius/rubinius#2871.
unless Pry::Helpers::BaseHelpers.rbx?
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
m.source_file.should == __FILE__
m.source_line.should == a.line
m = Pry::Method.from_binding(a.new.gag)
m.owner.should == a
m.source_file.should == __FILE__
m.source_line.should == a.line
end
end
it 'should find the right method even if it was renamed and replaced' do