-
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
Ampers Abinnet #38
base: master
Are you sure you want to change the base?
Ampers Abinnet #38
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
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
API Muncher
Congratulations! You're submitting your assignment!
Comprehension Questions