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:
parent
4aed2ab1c0
commit
b39ba9725b
1 changed files with 9 additions and 6 deletions
|
@ -144,13 +144,16 @@ describe Pry::Method do
|
||||||
m.name.should == "gag"
|
m.name.should == "gag"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should find the right method from a BasicObject" do
|
# Temporarily disabled to work around rubinius/rubinius#2871.
|
||||||
a = Class.new(BasicObject) { def gag; ::Kernel.binding; end; def self.line; __LINE__; end }
|
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 = Pry::Method.from_binding(a.new.gag)
|
||||||
m.owner.should == a
|
m.owner.should == a
|
||||||
m.source_file.should == __FILE__
|
m.source_file.should == __FILE__
|
||||||
m.source_line.should == a.line
|
m.source_line.should == a.line
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should find the right method even if it was renamed and replaced' do
|
it 'should find the right method even if it was renamed and replaced' do
|
||||||
|
|
Loading…
Reference in a new issue