Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drbragg/activerecord-exercise
A simple ActiveRecord Migrations, Associations, and Validations Exercise w/ TDD I made for LA study session
https://github.com/drbragg/activerecord-exercise
Last synced: 10 days ago
JSON representation
A simple ActiveRecord Migrations, Associations, and Validations Exercise w/ TDD I made for LA study session
- Host: GitHub
- URL: https://github.com/drbragg/activerecord-exercise
- Owner: DRBragg
- Created: 2017-08-24T22:16:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T02:04:26.000Z (over 7 years ago)
- Last Synced: 2024-11-09T01:45:45.694Z (2 months ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ActiveRecord Migrations, Associations, and Validations Exercise w/ TDD
## Getting Started
```no-highlight
# Clone down this repo
git clone https://github.com/DRBragg/activerecord-exercise.git# Move into this directory
cd activerecord-exercise# Install all the gems
bundle install# Remove the old git history and start your own
rm -rf .git && git init && git add -A && git commit -m 'Initial commit'
```
## Set up the databaseConfirm that the `config/database.layout.yml` is set up correctly.
Rename the file to `database.yml`.
Once you've changed the name to reflect `config/database.yml`, you can create your database with
`rake db:create`.## Run RSpec
Run `$ rspec` in your terminal to see what your app specifications are.
Fail-fast is configured to run 2 tests at a time. It is suggested that you tackle a pair of tests together as they are generally related.
Some tests are duplicated to keep pairing correct.
## Note
* For testing purposes, your model files are created for you, but they are incomplete