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

[#93] Extend include_stub_response helper to allow regex validation #94

Merged
merged 2 commits into from
Mar 11, 2016

Conversation

kayvonghaffari
Copy link
Contributor

[#93]

@roberthoner roberthoner added this to the 0.5.5 milestone Mar 11, 2016
Rester::Utils::RSpec.assert_deep_include(stub_response, stub) if stub
expected = stub ? stub_response.merge(stub) : stub_response

!!Rester::Utils::RSpec.assert_deep_include(actual, expected)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the !!? Shouldn't assert_deep_include return true if it doesn't raise an error?

@roberthoner
Copy link
Contributor

Code review looks good!

roberthoner pushed a commit that referenced this pull request Mar 11, 2016
[#93] Extend include_stub_response helper to allow regex validation
@roberthoner roberthoner merged commit e844722 into master Mar 11, 2016
@roberthoner roberthoner deleted the issue/93 branch March 11, 2016 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants