mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Hack in all the places
This commit is contained in:
parent
9add537c93
commit
bd320550c5
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@ describe "edit" do
|
|||
Pry.config.editor = lambda { |file, line|
|
||||
File.open(file, 'w'){ |f| f << 'require_relative "baz.rb"' }
|
||||
File.open(file.gsub('bar.rb', 'baz.rb'), 'w'){ |f| f << "Pad.required = true; FileUtils.rm(__FILE__)" }
|
||||
|
||||
if defined?(Rubinius::Compiler)
|
||||
File.unlink Rubinius::Compiler.compiled_name file
|
||||
end
|
||||
nil
|
||||
}
|
||||
pry_eval "edit #@tf_path"
|
||||
|
|
Loading…
Reference in a new issue