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

Commit c5f4d54

Browse files
bryanppirj
authored andcommitted
Update a spec to work in rubies that don't support required kwargs
1 parent be1b513 commit c5f4d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rspec/mocks/and_call_original_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class << self
188188
if RSpec::Support::RubyFeatures.kw_args_supported?
189189
binding.eval(<<-CODE, __FILE__, __LINE__)
190190
it "works for methods that accept keyword arguments" do
191-
def instance.foo(bar:); bar; end
191+
def instance.foo(bar: nil); bar; end
192192
expect(instance).to receive(:foo).and_call_original
193193
expect(instance.foo(bar: "baz")).to eq("baz")
194194
end

0 commit comments

Comments
 (0)