diff --git a/lib/pry/default_commands/context.rb b/lib/pry/default_commands/context.rb index 22dd1bb2..ffec8723 100644 --- a/lib/pry/default_commands/context.rb +++ b/lib/pry/default_commands/context.rb @@ -49,7 +49,6 @@ class Pry if !code.empty? set_file_and_dir_locals(file) - _pry_.inject_local('_line_', start, target) output.puts "\n#{text.bold('From:')} #{file} @ line #{start} #{desc}:\n\n" output.puts code.with_line_numbers.with_marker(marker) diff --git a/test/test_default_commands/test_context.rb b/test/test_default_commands/test_context.rb index 98562eee..1f461206 100644 --- a/test/test_default_commands/test_context.rb +++ b/test/test_default_commands/test_context.rb @@ -62,8 +62,6 @@ describe "Pry::DefaultCommands::Context" do def blimey! mock_pry(binding, 'whereami', '_file_') \ .should =~ /#{File.expand_path(__FILE__)}/ - - mock_pry(binding, 'whereami', '_line_').should =~ /#{__LINE__}/ end end