143
144
145
146
147
148
149
150
151
|
# File 'lib/clearance/shoulda_macros.rb', line 143
def should_validate_confirmation_is_not_blank(factory, attribute, opts = {})
warn "[DEPRECATION] should_validate_confirmation_is_not_blank: not meant to be public, no longer used internally"
should "validate #{attribute}_confirmation is not blank" do
model = Factory.build(factory, blank_confirmation_options(attribute))
model.save
assert_confirmation_error(model, attribute,
"#{attribute}_confirmation cannot be blank")
end
end
|