diff --git a/test/test_pry.rb b/test/test_pry.rb index e2889b7c..26508209 100644 --- a/test/test_pry.rb +++ b/test/test_pry.rb @@ -570,14 +570,14 @@ describe Pry do it 'should NOT try to interpolate pure ruby code (no commands) ' do str_output = StringIO.new - Pry.new(:input => StringIO.new('puts \'#{aggy}\''), :output => str_output).rep + Pry.new(:input => StringIO.new('format \'#{aggy}\''), :output => str_output).rep str_output.string.should.not =~ /NameError/ - Pry.new(:input => StringIO.new('puts #{aggy}'), :output => str_output).rep + Pry.new(:input => StringIO.new('format #{aggy}'), :output => str_output).rep str_output.string.should.not =~ /NameError/ $test_interpolation = "blah" - Pry.new(:input => StringIO.new('puts \'#{$test_interpolation}\''), :output => str_output).rep + Pry.new(:input => StringIO.new('format \'#{$test_interpolation}\''), :output => str_output).rep str_output.string.should.not =~ /blah/ $test_interpolation = nil