Sha256: a8f6ce9f2de8cfbf209ada6c907cb64d498fd9e5b7dd4cc2ee5b834bc872c122
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
class Report attr_accessor :description attr_accessor :url attr_accessor :request attr_accessor :expected_response attr_accessor :actual_response def initialize description, url, request, expected_response, actual_response self.description = description self.url = url self.request = request self.expected_response = expected_response self.actual_response = actual_response end def print puts "#{self.description}: " puts " Requested #{self.url} with payload:" puts " #{self.request.to_json}" puts " Expecting: " puts " " + self.expected_response.to_s puts " Receiving: " puts " #{self.actual_response}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.1.0 | lib/tester/reporter/report.rb |
api-tester-0.0.5 | lib/tester/reporter/report.rb |