Skip to content

Commit

Permalink
Fix lambda style
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Mar 28, 2022
1 parent abe51a1 commit 07bdc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/proc/parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
end

it "regards named parameters in lambda as optional if lambda: false keyword used" do
lambda {|x| }.parameters(lambda: false).first.first.should == :opt
-> x { }.parameters(lambda: false).first.first.should == :opt
end
end

Expand Down

0 comments on commit 07bdc8d

Please sign in to comment.