-
Notifications
You must be signed in to change notification settings - Fork 47
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
Naheed Edges #37
base: master
Are you sure you want to change the base?
Naheed Edges #37
Conversation
API MuncherWhat We're Looking For
|
describe "create_recipe method" do | ||
it "creates a valid recipe" do | ||
VCR.use_cassette('list_recipes') do | ||
response = EdamamApiWrapper.list_recipes("apple") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't actually need this test for EdamamApiWrapper.create_recipe
.
This is because it is a private method, so we can't call it directly. Indeed, the test code is instead calling list_recipes
, which we know does eventually call create_recipe
.
Since we can't directly call the method, it's not something we want to have explicit tests for -- this test is basically the same as the one on line 7, so we can remove it.
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions
lib
? How would your project change if you needed to interact with more than one API (aka more than just the Edamam API)?