Remove slash-change of windows paths
This commit is contained in:
parent
6d5eb0831b
commit
367d02c0d6
|
@ -44,7 +44,7 @@ class Pry
|
|||
_pry_.config.editor.call(*args)
|
||||
else
|
||||
sanitized_file = if windows?
|
||||
file.gsub(/\//, '\\')
|
||||
file
|
||||
else
|
||||
Shellwords.escape(file)
|
||||
end
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue