Skip to content

Commit

Permalink
Replace deprecated class methods in favour of newer methods (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Aug 19, 2022
1 parent 3e53b7c commit f7efff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/packages/mkdir_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
it "creates the directory" do
Mkdir.main(["Mkdir.test"])

expect(Dir.exists?("Mkdir.test")).to eql(true)
expect(Dir.exist?("Mkdir.test")).to eql(true)
Dir.delete("Mkdir.test")
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/packages/touch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
it "creates the file" do
Touch.main(["touch.test"])

expect(File.exists?("touch.test")).to eql(true)
expect(File.exist?("touch.test")).to eql(true)
`rm touch.test`
end
end
Expand Down

0 comments on commit f7efff1

Please sign in to comment.