Clone of Hacker News for teaching testing in Rails.
- Install Ruby
- Install Rails
- Clone this repository
- Run
bundle
to install dependencies - Run
bundle exec rspec
to run tests
-
- Outside-in
- Testing Phrases
- Create and Read
-
- Fixture, Factory Girl
- DatabaseRewinder
-
- Setup Travis CI
-
Link#scores
data-spec
for finding elements
-
Link#upvote
-
- Why shoulda-matchers
- Extract method in specs
- Sad path