-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add slice method to ENV like Hash#slice #1844
Conversation
Could you adjust the indent? |
fe8a9b6
to
6f153d7
Compare
Sorry. Is it better now @nobu ? Thanks for the review |
Hello @nobu |
test/ruby/test_env.rb
Outdated
ENV["foo"] = "bar" | ||
ENV["baz"] = "qux" | ||
ENV["bar"] = "rab" | ||
assert_equal(ENV.slice(), {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order of assert_equal
is (expected, result).
Seems fine, except for the arguments order of assertions. |
6f153d7
to
32acadf
Compare
Sorry for the arguments order of assertions @nobu. It should be good now. I have one failing test on AppVeyor but it seems unrelated
|
CI fixed. @nobu do I need to do something else to have this merged? |
Hello
After reading https://bugs.ruby-lang.org/issues/14559 I thought it could be a good idea to try to implement this during the RubyHackChallenge at Cookpad office in Bristol.
Here is my first PR for MRI, feel free to make any comments.
I don't know if I need to add entry changelog somewhere.
Thanks @mame for the help when I was working on.