module Audited::RspecMatchers

def be_audited


it { should be_audited.on(:create).associated_with(:user).except(:password) }
it { should be_audited.requires_comment }
it { should be_audited.except(:password) }
it { should be_audited.only(:field_name) }
it { should be_audited.associated_with(:user) }
it { should be_audited }
Example:

* on - tests that the audit makes use of the on option with specified parameters
* requires_comment - if specified, then the audit must require comments through the audit_comment attribute
* except - tests that the audit makes use of the except option
* only - tests that the audit makes use of the only option *Overrides except option*
* associated_with - tests that the audit makes use of the associated_with option
Options:

Ensure that the model is audited.
def be_audited
  AuditMatcher.new
end