Sha256: 28e11d6af7deb4a10fe30a0d38c41717f9dafa02363b9566c31b78113623a34e

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

module Outpost
  module Expectations
    module ResponseCode
      def self.extended(base)
        base.expect :response_code, base.method(:evaluate_response_code)
      end

      def evaluate_response_code(scout, response_code)
        scout.response_code == response_code.to_i
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
outpost-0.1.0 lib/outpost/expectations/response_code.rb