-
Notifications
You must be signed in to change notification settings - Fork 44
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
Leticia - API Muncher - Ampers #27
base: master
Are you sure you want to change the base?
Conversation
… generated from search
…api_wrapper (only happens if using #find method)
…box on the right using form_tag for the recipes controller
API MuncherWhat We're Looking For
|
<header> | ||
<!-- Menu for searching available in every page: --> | ||
|
||
<div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium"> |
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.
This doesn't seem to do anything.
describe RecipesController do | ||
|
||
describe 'index' do | ||
it "Should get a list of Recipes when give a term" do |
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.
What about when Query is empty or missing, or not a valid search term?
VCR.use_cassette("recipes") do | ||
response = EdamamApiWrapper.find_recipes("chicken") | ||
|
||
response[0].must_be_kind_of Recipe |
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.
You should loop through the array and verify that all elements are instances of Recipe
.
:match_requests_on => [:method, :uri, :body] # The http method, URI and body of a request all need to match | ||
} | ||
# Don't leave our Slack token lying around in a cassette file. | ||
config.filter_sensitive_data("<SLACK_TOKEN>") do |
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.
Gah you're filtering the Slack token and not the Edaman token!
doh!
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions