summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-09 19:01:20 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-10 00:01:28 -0300
commite43dbb0962eb065e8e8be59fcacd1068bd62519e (patch)
tree986660971b84d530fc4be4d6bd80335d16a467d2 /spec
parentdb5b2b4ef67f45cc37357585920c48898a97be1c (diff)
downloadpry-e43dbb0962eb065e8e8be59fcacd1068bd62519e.tar.gz
Remove support for Ruby 1.9.3
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/edit_spec.rb8
-rw-r--r--spec/editor_spec.rb8
2 files changed, 2 insertions, 14 deletions
diff --git a/spec/commands/edit_spec.rb b/spec/commands/edit_spec.rb
index c51cc59d..cc40bd0e 100644
--- a/spec/commands/edit_spec.rb
+++ b/spec/commands/edit_spec.rb
@@ -23,13 +23,7 @@ describe "edit" 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.expand_path(File.join(@tf_dir.to_s, 'bar.rb'))
FileUtils.touch(@tf_path)
end
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)