Skip to content

Commit

Permalink
Fix argument passing so that keyword arguments are properly passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Dec 25, 2022
1 parent 37159be commit 1442b45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ def issue_certificate(
end

def fake_certificate_chain_validation_time(attestation_statement, time)
allow(attestation_statement).to receive(:attestation_root_certificates_store).and_wrap_original do |m, *args|
store = m.call(*args)
allow(attestation_statement).to receive(:attestation_root_certificates_store)
.and_wrap_original do |m, *_args, **kwargs|
store = m.call(**kwargs)
store.time = time
store
end
Expand Down

0 comments on commit 1442b45

Please sign in to comment.