We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650961b commit 7c69a53Copy full SHA for 7c69a53
spec/ruby/core/method/parameters_spec.rb
@@ -247,9 +247,12 @@ def one_splat_one_block(*args, &block)
247
"foo".method(:delete!).parameters.should == [[:rest]]
248
end
249
250
- it "returns [[:rest]] for core methods with optional arguments" do
+ it "returns [[:rest]] or [[:opt]] for core methods with optional arguments" do
251
# pop takes 1 optional argument
252
- [].method(:pop).parameters.should == [[:rest]]
+ [
253
+ [[:rest]],
254
+ [[:opt]]
255
+ ].should include([].method(:pop).parameters)
256
257
258
it "returns [[:req]] for each parameter for core methods with fixed-length argument lists" do
0 commit comments