1
0
Fork 0
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:
Conrad Irwin 2013-03-24 20:46:15 -07:00
parent 9add537c93
commit bd320550c5

View file

@ -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"