Sha256: c96dd6146ad3f7fb4c2ceb69a2ba4c84ee6dcfa87c71e0825030d40435c599c0

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require 'fitting/records/tested/request'

module Fitting
  module Storage
    class Responses
      attr_reader :tested_requests

      def initialize
        @tested_requests = []
      end

      def add(response, example)
        tested_requests.push(Fitting::Records::Tested::Request.new(response, example))
      end

      def tests
        Fitting::Tests.new(tested_requests)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fitting-3.0.2 lib/fitting/storage/responses.rb
fitting-3.0.1 lib/fitting/storage/responses.rb
fitting-3.0.0 lib/fitting/storage/responses.rb