From de12f255d31d0de36534be6c318a3ffe1158ce77 Mon Sep 17 00:00:00 2001 From: John Mair Date: Fri, 18 Jan 2013 00:59:16 +0100 Subject: [PATCH] Fix failing specs on ree/ruby18 We put a conditional around tests so that we skip those those using show-source (namely the one in run_command_spec.rb) on ree/ruby18 --- spec/run_command_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/run_command_spec.rb b/spec/run_command_spec.rb index 66ca5609..56836211 100644 --- a/spec/run_command_spec.rb +++ b/spec/run_command_spec.rb @@ -15,9 +15,11 @@ describe "Pry.run_command" do out.string.should =~ /hokey_pokey/ end - # This is a regression test as 0.9.11 broke this behaviour - it 'can perform a show-source' do - Pry.run_command "show-source drum", :context => @context, :output => out = StringIO.new - out.string.should =~ /roken is dodelijk/ + if !PryTestHelpers.mri18_and_no_real_source_location? + # This is a regression test as 0.9.11 broke this behaviour + it 'can perform a show-source' do + Pry.run_command "show-source drum", :context => @context, :output => out = StringIO.new + out.string.should =~ /roken is dodelijk/ + end end end