There should be a corresponding model test for this.  Take a look at `should validates_format_of` from shoulda.