Module: Auditor::SpecHelpers

Includes:
Status
Defined in:
lib/auditor/spec_helpers.rb

Class Method Summary collapse

Methods included from Status

#audit_as, #auditing_disabled?, #auditing_enabled?, #disable_auditing, #enable_auditing, #with_auditing, #without_auditing

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/auditor/spec_helpers.rb', line 5

def self.included(base)
  base.class_eval do
    before(:each) do
      disable_auditing
    end

    after(:each) do
      enable_auditing
    end
  end
end