mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
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
This commit is contained in:
parent
14283aa51f
commit
de12f255d3
1 changed files with 6 additions and 4 deletions
|
@ -15,9 +15,11 @@ describe "Pry.run_command" do
|
||||||
out.string.should =~ /hokey_pokey/
|
out.string.should =~ /hokey_pokey/
|
||||||
end
|
end
|
||||||
|
|
||||||
# This is a regression test as 0.9.11 broke this behaviour
|
if !PryTestHelpers.mri18_and_no_real_source_location?
|
||||||
it 'can perform a show-source' do
|
# This is a regression test as 0.9.11 broke this behaviour
|
||||||
Pry.run_command "show-source drum", :context => @context, :output => out = StringIO.new
|
it 'can perform a show-source' do
|
||||||
out.string.should =~ /roken is dodelijk/
|
Pry.run_command "show-source drum", :context => @context, :output => out = StringIO.new
|
||||||
|
out.string.should =~ /roken is dodelijk/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue