Remove slash-change of windows paths

This commit is contained in:
Christian Haase 2014-09-12 16:12:06 +02:00
parent 6d5eb0831b
commit 367d02c0d6
2 changed files with 1 additions and 6 deletions

View File

@ -44,7 +44,7 @@ class Pry
_pry_.config.editor.call(*args)
else
sanitized_file = if windows?
file.gsub(/\//, '\\')
file
else
Shellwords.escape(file)
end

View File

@ -43,11 +43,6 @@ describe Pry::Editor do
end
end
it "should replace / by \\" do
invocation_str = @editor.build_editor_invocation_string(@tf_path, 5, true)
invocation_str.should =~ %r(\\#{@tf_dir.basename}\\)
end
it "should not shell-escape files" do
invocation_str = @editor.build_editor_invocation_string(@tf_path, 5, true)
invocation_str.should =~ /hello world\.rb/