lib/fitting/storage/responses.rb in fitting-2.18.3 vs lib/fitting/storage/responses.rb in fitting-3.0.0
- old
+ new
@@ -1,25 +1,21 @@
-require 'fitting/statistics'
-require 'fitting/tests'
require 'fitting/records/tested/request'
module Fitting
module Storage
class Responses
+ attr_reader :tested_requests
+
def initialize
@tested_requests = []
end
- def add(env_response, metadata = {})
- @tested_requests.push(Fitting::Records::Tested::Request.new(env_response, metadata))
+ def add(response, example)
+ tested_requests.push(Fitting::Records::Tested::Request.new(response, example))
end
- def statistics
- Fitting::Statistics.new(@tested_requests)
- end
-
def tests
- Fitting::Tests.new(@tested_requests)
+ Fitting::Tests.new(tested_requests)
end
end
end
end