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

Commit a150ae3

Browse files
committed
remove kwargs parameter that had a hash as a key as its not valid for legacy ruby
1 parent ab28606 commit a150ae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/rspec/support/method_signature_verifier_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,9 @@ def arity_kw_arg_splat(**rest); end
679679
end
680680

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

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

0 commit comments

Comments
 (0)