Sha256: 678ed125ecdb7bb9f835794b09d46ae9b683e04b0db9886a0ea84eb2c6d4cf7d
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Outpost module Expectations module ResponseTime RESPONSE_TIME_MAPPING = { :less_than => "<", :more_than => ">", }.freeze def self.extended(base) base.expect :response_time, base.method(:evaluate_response_time) end def evaluate_response_time(scout, rules) rules.all? do |rule,comparison| scout.response_time.send(RESPONSE_TIME_MAPPING[rule], comparison) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outpost-0.1.0 | lib/outpost/expectations/response_time.rb |