Gallup93 / house_salad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Ruby 80.9%Language:HTML 14.0%Language:CSS 2.6%Language:JavaScript 2.5%