diff options
Diffstat (limited to 'spec/editor_spec.rb')
-rw-r--r-- | spec/editor_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/editor_spec.rb b/spec/editor_spec.rb index 68297f3f..2005bf1c 100644 --- a/spec/editor_spec.rb +++ b/spec/editor_spec.rb @@ -72,7 +72,11 @@ describe Pry::Editor do end end - describe "build_editor_invocation_string", skip: !Pry::Helpers::Platform.windows? do + describe "build_editor_invocation_string" do + before do + allow(Pry::Helpers::Platform).to receive(:windows?).and_return(false) + end + it 'should shell-escape files' do invocation_str = @editor.build_editor_invocation_string(@tf_path, 5, true) expect(invocation_str).to match(/#{@tf_dir}.+hello\\ world\.rb/) |