This repo is used as an example in the Consuming API lesson taught in Backend Module 3. Please sign-up for an API key for the TheDogAPI to complete this exercise.
Rails 5.2.4.3
Ruby 2.5.3
git clone https://github.com/turingschool-examples/dog-data
cd dog-data
rails db:{create,migrate}
Write a test and complete the user story below.
NOTE: Please use the existing form in the application.
As a user,
When I visit the "/"
And I enter "5" into the number field
And I click on "Fetch Dogs"
Then my path should be "/search"
And I should see a message "5 Results"
And I should see the following information for each result:
- image
- breed name
- life span
- temperament