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
1 changed files with 9 additions and 6 deletions

View File

@ -144,6 +144,8 @@ describe Pry::Method do
m.name.should == "gag"
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 }
@ -152,6 +154,7 @@ describe Pry::Method do
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
o = Object.new