kirk bushell | Riding the wave of programmatic novelty

Archive for tag Tests

An Rspec Model Example

Both in part due to the traffic coming to my blog via the subject line, and also my want to learn a bit more about RSpec model tests, I thought maybe it would be a good idea to throw together a more complicated model test, using RSpec. In this article, we'll look at the various methods you might have as part of... let's say... a vehicle model.