-
Notifications
You must be signed in to change notification settings - Fork 42
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
Jocelyn Gonzalez -- Carets #18
base: master
Are you sure you want to change the base?
Conversation
API MuncherWhat We're Looking For
|
end | ||
return view_results | ||
else | ||
return [] |
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.
Why would this return an empty array instead of nil
? This is for an individual recipe not a collection.
end | ||
end | ||
|
||
it "can view the show page" 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?
@@ -0,0 +1,38 @@ | |||
require 'test_helper' |
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 tests for your Recipe
class?
<% @recipe.each do |r| %> | ||
<section class="ingredients small-12 large-6 column"> | ||
<h2><%= r.label %></h2> | ||
<p><em>Originally found in <%= link_to r.url %></em></p> |
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 link is broken!
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions