Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
remove kwargs parameter that had a hash as a key as its not valid for…
Browse files Browse the repository at this point in the history
… legacy ruby
  • Loading branch information
malcolmohare committed Jan 16, 2024
1 parent ab28606 commit a150ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rspec/support/method_signature_verifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@ def arity_kw_arg_splat(**rest); end
end

it "ignores kwargs with invalid types if there are any with valid types" do
expect(valid?(:x => 1, 3 => 10, {"a":"b"} => 1)).to eq(true)
expect(valid?(:x => 1, 'y' => 2, 3 => 10, {"a":"b"} => 1)).to eq(true)
expect(valid?('y' => 2, 3 => 10, {"a":"b"} => 1)).to eq(true)
expect(valid?(:x => 1, 3 => 10)).to eq(true)
expect(valid?(:x => 1, 'y' => 2, 3 => 10)).to eq(true)
expect(valid?('y' => 2, 3 => 10)).to eq(true)
end

it 'mentions the required kw args and keyword splat in the description' do
Expand Down

0 comments on commit a150ae3

Please sign in to comment.