Module: Stormbreaker::AxeRSpecAuditor

Defined in:
lib/stormbreaker/axe_rspec_auditor.rb

Instance Method Summary collapse

Instance Method Details

#not_to(matcher = nil, message = nil) ⇒ Object



12
13
14
15
# File 'lib/stormbreaker/axe_rspec_auditor.rb', line 12

def not_to(matcher = nil, message = nil)
  Stormbreaker::AxeHelper.assert_axe
  super
end

#to(matcher = nil, message = nil) ⇒ Object

Fire Axe assertion before normal Rspec assertion in case RSpec assertion fails and prevents Axe from running



7
8
9
10
# File 'lib/stormbreaker/axe_rspec_auditor.rb', line 7

def to(matcher = nil, message = nil)
  Stormbreaker::AxeHelper.assert_axe
  super
end