mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Skip rubinius due to [Issue rubinius/rubinius#2247]
This commit is contained in:
parent
290eb40f4c
commit
1af49497ac
1 changed files with 10 additions and 7 deletions
|
@ -181,15 +181,18 @@ describe "whereami" do
|
||||||
Object.remove_const(:Horse)
|
Object.remove_const(:Horse)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should show class when -c option used, and binding is outside a method' do
|
# https://github.com/rubinius/rubinius/pull/2247
|
||||||
class Cor
|
unless Pry::Helpers::BaseHelpers.rbx?
|
||||||
def blimey;end
|
it 'should show class when -c option used, and binding is outside a method' do
|
||||||
|
class Cor
|
||||||
|
def blimey;end
|
||||||
|
|
||||||
out = pry_eval(binding, 'whereami -c')
|
out = pry_eval(binding, 'whereami -c')
|
||||||
out.should =~ /class Cor/
|
out.should =~ /class Cor/
|
||||||
out.should =~ /blimey/
|
out.should =~ /blimey/
|
||||||
|
end
|
||||||
|
Object.remove_const(:Cor)
|
||||||
end
|
end
|
||||||
Object.remove_const(:Cor)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue