Tag Archives: mock-objects

Making a Mockery of TDD

I made this gnomic remark on Twitter the other day: To be a successful mockist, you must dislike mocks. A lot of people re-tweeted it, so I guess I’m not completely alone in thinking this way. I should back up … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 10 Comments

Complex Hash Expectations in RSpec

When spec-ing something that calls method which takes a set of nested hashes (as many Rails methods do), it may be tempting to use #hash_including: to test for only the values you care about. However #hash_including won’t work the way … Continue reading

Posted in Ruby, Uncategorized | Tagged , , , | 3 Comments