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

Add Provider testing functionality #33

Merged
merged 14 commits into from
Nov 5, 2015
Merged

Add Provider testing functionality #33

merged 14 commits into from
Nov 5, 2015

Conversation

kayvonghaffari
Copy link
Contributor

[#28]

With valid card details:
request:
body:
card_number: "4111111111111111",
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove body: here from the example.

response = @stub[path][verb][context]['response']
rescue NoMethodError => e
raise Rester::Errors::StubError,
"Could not find path: #{path.inspect} verb: #{verb.inspect} context: #{context.inspect} in #{@stub_filepath}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't define the e variable if it's not used.

rescue NoMethodError
...
end

Also use fail here instead of raise.

@roberthoner roberthoner added this to the 0.3.0 milestone Nov 5, 2015
@roberthoner roberthoner self-assigned this Nov 5, 2015
@roberthoner
Copy link
Contributor

This is starting to look pretty good!

roberthoner pushed a commit that referenced this pull request Nov 5, 2015
Add Provider testing functionality
@roberthoner roberthoner merged commit 8cbd9f9 into master Nov 5, 2015
@roberthoner roberthoner deleted the issue/28 branch November 5, 2015 06:01
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