Validate acceptance of matcher should purpose on option #152

cyril opened this Issue Jan 24, 2011 · 1 comment


None yet

2 participants

cyril commented Jan 24, 2011

Acceptance of matcher should purpose the :on option in order to specifies when this validation is active (default is :save, other options :create, :update).


it { should validate_acceptance_of(:terms_of_service).on(:create) }
gabebw commented Mar 9, 2012

A pull request on shoulda-matchers would be welcome.

@gabebw gabebw closed this Mar 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment