Validate acceptance of matcher should purpose on option #152

Closed
cyril opened this Issue Jan 24, 2011 · 1 comment

Projects

None yet

2 participants

@cyril
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).

Example:

it { should validate_acceptance_of(:terms_of_service).on(:create) }
@gabebw
Member
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