Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strict_mode to Test::Stubs #1299

Closed
wants to merge 2 commits into from
Closed

Conversation

iMacTia
Copy link
Member

@iMacTia iMacTia commented Aug 1, 2021

Description

Close #1291
Backport to 1.x of #1298

Sometimes, users might want to check whether stubbed requests exactly
match the parameters and headers. In this case, they expect
Test::Stubs to raise an error when they add a new parameter in a
request. This patch introduces strict_mode for the purpose of the
expectation. With strict_mode, Test::Stubs tries to check all a
path, parameters, and headers exactly.

Todos

  • Tests
  • Documentation

yykamei and others added 2 commits August 1, 2021 17:25
Sometimes, users might want to check whether stubbed requests exactly
match the parameters and headers. In this case, they expect
`Test::Stubs` to raise an error when they add a new parameter in a
request. This patch introduces `strict_mode` for the purpose of the
expectation. With `strict_mode`, `Test::Stubs` tries to check all a
path, parameters, and headers exactly.
@iMacTia iMacTia closed this Aug 1, 2021
@iMacTia iMacTia deleted the add-strict-mode-to-test-stubs branch August 1, 2021 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants