-
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
Carets- Julia Meier- API Muncher #25
base: master
Are you sure you want to change the base?
Conversation
…ade env file and added file to gitignore
…er the class that was messing up the CVR
…able to render a list of search results
…he from and to parameters
…ith how to inject the from/to into the params
…ut to start writing tests on the edamam_api to see why it's returning an empty array for the list_recipes method
…params and making a new path
…nly gives 100 recipes at a time. Also made show controller
…ller methods and then deploy to heroku
…he number_of_recipes is <10, 10-100, or greater than 100
…ause heroku believes the @number_of_recipes is nil
…messing up heroku
…apping header background image
…ta still doesn't line up correctly
…dded two lines to production.rb per stackoverflow heros
… a large white gap between the image and the footer
API MuncherWhat We're Looking For
|
end | ||
end | ||
|
||
describe "search by page (i.e. pagination)" 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 sets of tests.
it "redirects to the home page if the user enters nothing as a keyword" do | ||
get recipes_search_path params:{keywords: ""} | ||
must_redirect_to root_path | ||
flash[:failure].must_equal "You did not enter any keywords. Please enter ingredient keywords into the search bar." |
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.
Your controller doesn't actually add that flash message.
#binding.pry | ||
@keywords = params['keywords'] | ||
if @keywords.blank? | ||
redirect_to root_path |
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.
no flash notice?
…changed position from absolute to relative)
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions