diff --git a/spec/commands/whereami_spec.rb b/spec/commands/whereami_spec.rb index c93d7944..65bd8321 100644 --- a/spec/commands/whereami_spec.rb +++ b/spec/commands/whereami_spec.rb @@ -181,15 +181,18 @@ describe "whereami" do Object.remove_const(:Horse) end - it 'should show class when -c option used, and binding is outside a method' do - class Cor - def blimey;end + # https://github.com/rubinius/rubinius/pull/2247 + unless Pry::Helpers::BaseHelpers.rbx? + 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.should =~ /class Cor/ - out.should =~ /blimey/ + out = pry_eval(binding, 'whereami -c') + out.should =~ /class Cor/ + out.should =~ /blimey/ + end + Object.remove_const(:Cor) end - Object.remove_const(:Cor) end end