Skip to content

Tag Archives: Rails

Validating Rails boolean fields in RSpec


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 […]