Open
Conversation
…link opens in new tab
…topped showing root page
…heroku and changed config application from autoload to eagerload
…apper to accept array of strings
…wer version of bundler
…rapper...5 errors still need to be fixed
API MuncherWhat We're Looking For
|
CheezItMan
reviewed
May 15, 2018
test/lib/recipe_test.rb
Outdated
| must_respond_with :success | ||
| end | ||
|
|
||
| it "should redirect to root with invalid data in params" do |
There was a problem hiding this comment.
This file is for testing the lib files, not controllers.
That's why all these tests are failing.
|
|
||
| url = "#{BASE_URL}?r=#{r}&app_id=#{APPLICATION_ID}&app_key=#{APPLICATION_KEYS}" | ||
|
|
||
| data = HTTParty.get(URI.encode(url)) |
There was a problem hiding this comment.
You need an if statement to verify that the get request worked.
|
|
||
| recipe_details = ApiMuncherWrapper.get_recipe(r) | ||
|
|
||
| # should this be in ApiMuncherWrapper??? |
There was a problem hiding this comment.
Probably a bit of both. I do think that recipe_details should be nil here not false
…controller test file...tests all fail and typos need to be fixed
…roller and controller testing
…al s nominal cases still pass
…dge case test passing
…es for invalid wrapper input for api request for recipes. still needs wrapper testing for recipe show page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions