Skip to content

Commit

Permalink
Fix failing specs on ree/ruby18
Browse files Browse the repository at this point in the history
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
  • Loading branch information
banister committed Jan 18, 2013
1 parent 14283aa commit de12f25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/run_command_spec.rb
Expand Up @@ -15,9 +15,11 @@ def o.drum
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

0 comments on commit de12f25

Please sign in to comment.