Sha256: 4002c1440092230ea2ef23fa5de827028803a2da5c7e736800f3ed561212c5d1
Contents?: true
Size: 780 Bytes
Versions: 5
Compression:
Stored size: 780 Bytes
Contents
require 'fitting/route/coverage' require 'fitting/route/requests' require 'fitting/route/responses' module Fitting class Route def initialize(all_responses, routes, strict) @coverage = Fitting::Route::Coverage.new(all_responses, routes, strict) @requests = Fitting::Route::Requests.new(@coverage) @responses = Fitting::Route::Responses.new(routes, @coverage) end def statistics_with_conformity_lists congratulation = 'All responses are 100% valid! Great job!' if @coverage.not_coverage.empty? [ @requests.conformity_lists, @requests.statistics, @responses.statistics, congratulation ].compact.join("\n\n") end def errors @coverage.not_coverage.join("\n") + "\n" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fitting-2.2.0 | lib/fitting/route.rb |
fitting-2.1.3 | lib/fitting/route.rb |
fitting-2.1.2 | lib/fitting/route.rb |
fitting-2.1.1 | lib/fitting/route.rb |
fitting-2.1.0 | lib/fitting/route.rb |