En resumen:
Sometimes you can just hardcode the answer. This is okay because you'll be refactoring in a moment.
Run the tests and watch them pass: the test bar will turn green. (This should only take about 30 seconds, too.)
James Shore, The Art of Agile Programming
Véase
- Puede encontrar el código de esta sección en Github: https://github.com/crguezl/rspec-rpcalc
- RSpec::Matchers
- Behavior-driven testing with RSpec. A comprehensive approach to test-driven development Bruce Tate (bruce@rapidred.com), CTO, WellGood LLC IBM developerWorks
- RSpec documentation
- Rspec Matchers
- RSpec Matchers by Charles Max Wood
- An Introduction to Rspec
- Rspec 101 by Jason Noble
- Ruby for Newbies: Testing with Rspec (screencast)
- Empezando con RSpec por jmbeas
- An Introduction To RSpec treehouse blog
- http://www.slideshare.net/AlanHecht/rspec-and-rails
- My Journey through Rspec by Carmen
- Testing Tuesday Series
Subsecciones Casiano Rodriguez León 2015-01-07