-
Notifications
You must be signed in to change notification settings - Fork 188
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
Check conformity of all interfaces provided by fakefs to Ruby Matz distribution #430
Comments
idk why FileTest exists ... ask the initial author or go spelunking through git history 🤷♂️ |
Looks like it was done to conform ruby standard library https://ruby-doc.org/core-2.6.1/FileTest.html |
sounds good! :)
…On Mon, Mar 11, 2019 at 11:10 PM Anton Rybakov ***@***.***> wrote:
idk why FileTest exists ... ask the initial author or go spelunking
through git history 🤷♂️
PR welcome if you figure out how to fix this
Looks like it was done to conform ruby standard library
https://ruby-doc.org/core-2.6.1/FileTest.html
So the good solution probably will be add missing methods and create test
to check that set of methods is the same like in actual FileTest module
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#430 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZ0TmoOwU5Qa5x7q2Zpt46e7rZ9k1ks5vV0S_gaJpZM4bpNnV>
.
|
Have renamed to represent more common goal. It will be nice to have tests that check equality the sets of methods provided by fakefs and Ruby distribution in module/classes - File, File::Stat, FileUtils, FileTests, Pathname and etc |
Adding to this, Ruby 2.7 does include some changes to To summarize: https://docs.ruby-lang.org/en/2.7.0/File.html#method-c-extname |
Greetings
FileTest module looks a little too thin to handle what Pathname wants from him.
Don't get the purpose of FileTest file at all, it just passes all responsibility to File module
The text was updated successfully, but these errors were encountered: