Skip to content

Tag Archives: RSpec

Validating Rails boolean fields in RSpec

30-Sep-12

So I’ve working on a Rails app recently, using RSpec for Test-Driven Development, and I ran into what I think is a bit of a gotcha, so I thought I’d write up a post on the matter. One of my models has a Boolean field, and like the other fields, I was trying to validate […]