-
Notifications
You must be signed in to change notification settings - Fork 42
Sara Chandler -- Carets #23
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
base: master
Are you sure you want to change the base?
Conversation
API MuncherWhat We're Looking For
|
| <% @results_page.each do |recipe| %> | ||
| <article class="results_list column float-left large-4 medium-6 small-12"> | ||
| <li> | ||
| <%= image_tag recipe.image, alt: "foods" %> |
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.
It would make sense for this image to be a link to the recipe too!
| end | ||
| end | ||
|
|
||
| def self.show_recipe(uri) |
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.
Some error detection here should be done, what if response[0] is nil?
| end | ||
| end | ||
|
|
||
| describe "show_recipe" 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 negative case tests? What if the item put in the URL is wrong?
| end | ||
| end | ||
|
|
||
| # it "will render 404 if recipe isn't found" 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.
Good that you thought of it, this test exposes a problem with your wrapper.
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions