lib/outpost/scout.rb in outpost-0.2.2 vs lib/outpost/scout.rb in outpost-0.2.3

- old
+ new

@@ -146,10 +146,10 @@ # value. # Example: {:response_time => 200} # # status is the status (:up, :down or :warning, for example) that will be returned # in case the expectation match current system status. - if @config.reports.present? + if @config.reports && !@config.reports.empty? @config.reports.each do |response_pair, status| response_pair.each do |expectation, value| if self.class.expectations[expectation].nil? message = "expectation '#{expectation}' wasn't implemented by #{self.class.name}" raise NotImplementedError, message