/house-salad

Backend Mod 3 Repo used in consuming APIs lesson

Primary LanguageRuby

House Salad Base

This repo is used as a base for the Consuming API lesson taught in Backend Module 3. To complete the lesson you will need to sign-up for an API key from the ProPublica Congress API.

Versions

Rails 5.1.7 Ruby 2.5.3

Setup

git clone https://github.com/turingschool-examples/house-salad-base house-salad

cd house-salad

rails db:{create,migrate}

Exercise

Write a test and complete this user story

NOTE: Please use the existing form in the application.

As a user
When I visit "/"
And I select "Colorado" from the dropdown
And I click on "Locate Members of the House"
Then my path should be "/search" with "state=CO" in the parameters
And I should see a message "7 Results"
And I should see a list of the 7 members of the house for Colorado
And I should see a name, role, party, and district for each member