Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FileTest signature and add tests #880

Closed
wants to merge 3 commits into from
Closed

Conversation

snaka
Copy link
Contributor

@snaka snaka commented Jan 28, 2022

The following method cannot receive IO instance as an argument, so I fixed it.

  • executable?
  • executable_real?
  • readable?
  • readable_real?
  • writable?
  • writable_real?
  • symlink?

Also, I added tests.

Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

FileTest, :exist?, io_open
end

def test_exists?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exists? was removed in 3.0 (?). Deleting this test case would pass the test.

The `exists?` method was removed in Ruby 3.0, so there was no need to test it.
@soutaro soutaro mentioned this pull request Feb 1, 2022
@soutaro
Copy link
Member

soutaro commented Feb 2, 2022

Closing this PR since #888 includes the change.

@soutaro soutaro closed this Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants