Specs and Code
draft
Date:
2012-09-16
Tags:
workflow
notes
Write Ruby specs first, then write code.
When working on a Model, Controller, or View, be sure to test it with a Unit, Controller, or Integration test, respectively.
Run the whole test suite by typing:
rspec spec
Or just one test within a file by typing:
rspec spec/controllers/sample_controller.rb:71
By Ryan Wold · © 2012–2026 Ryan Wold
Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.
Tip: $afomi on HandCash · afomi@handcash.io