- Notifications
You must be signed in to change notification settings - Fork14
turingschool-examples/election
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A repository with information from the 2016 election pulled fromthis Kaggle dataset.
Your job is to fix the failing tests in this application by writing new methods to fit the needs outlined in the model specs. Some of the methods will be class methods, while others will be instance methods.
$ bundle install$ rails db:{create,migrate,seed}
NOTE! There are about 24,000 primary results that will be imported when you run theseed
command. This may take a few minutes to complete. Watch your Terminal for the running output.
There is an existing test suite with some model tests already implemented. Run this suite with:
bundleexec rspec
We recommend that you attempt to resolve the failing specs in the following order:
- County
- PrimaryResult
- Candidate
When you begin, start with
bundleexec rspec spec/models/county_spec.rb
Let the errors in each test guide your implementation.
When you are finished, you may opt to compare your answers to oursolutions
branch in your browser.
About
Exploration of class vs. instance methods via Election Result data using Rails 7 and Ruby 3. For use in Backend Mod 2
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.