module Shoulda::Matchers::ActiveModel

def validate_acceptance_of(attr)


it { should validate_acceptance_of(:eula) }
Example:

translation for :accepted.
errors.on(:attribute). Regexp or string. Defaults to the
* with_message - value the test expects to find in
Options:

accepted.
Ensures that the model cannot be saved the given attribute is not
def validate_acceptance_of(attr)
  ValidateAcceptanceOfMatcher.new(attr)
end