Browse Source

Bugfix: Fact system

develop
Christian Aust 3 months ago
parent
commit
d7f872a5db
  1. 4
      lib/sanity/suite.rb

4
lib/sanity/suite.rb

@ -64,7 +64,9 @@ module Sanity
.each do |m|
Runner.log.debug "Executing ##{m}"
incident = Result::Incident.new(test.target, m)
incident.facts.merge! test.facts
if test.respond_to?(:facts)
incident.facts.merge! test.facts
end
incident.subject = test.to_s
test.send(m)
rescue Sanity::AssertionError => e

Loading…
Cancel
Save