summaryrefslogtreecommitdiff
path: root/spec/editor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/editor_spec.rb')
-rw-r--r--spec/editor_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/editor_spec.rb b/spec/editor_spec.rb
index 2005bf1c..a89edfd9 100644
--- a/spec/editor_spec.rb
+++ b/spec/editor_spec.rb
@@ -6,13 +6,7 @@ describe Pry::Editor do
before do
# OS-specific tempdir name. For GNU/Linux it's "tmp", for Windows it's
# something "Temp".
- @tf_dir =
- if Pry::Helpers::Platform.mri_19?
- Pathname.new(Dir::Tmpname.tmpdir)
- else
- Pathname.new(Dir.tmpdir)
- end
-
+ @tf_dir = Pathname.new(Dir.tmpdir)
@tf_path = File.join(@tf_dir.to_s, 'hello world.rb')
@editor = Pry::Editor.new(Pry.new)