Sha256: f9cf3e7acafc1bb415ff5087f42f7b9149c343315cda99e495db077e6aaff020
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
module Fitting module Report class Test def initialize(test) @test = test @prefix = false @action = false @response = false @combination = false @id = SecureRandom.hex end def id @id end def to_h { path: path, method: method, status: status, body: body } end def path @test['path'] end def method @test['method'] end def status @test['response']['status'].to_s end def body @test['response']['body'] end def mark_prefix @prefix = true end def mark_action @action = true end def mark_response @response = true end def mark_combination @combination = true end def is_there_a_prefix? @prefix end def is_there_an_actions? @action end def is_there_an_responses? @response end def is_there_an_combinations? @combination end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fitting-2.17.0 | lib/fitting/report/test.rb |
fitting-2.16.1 | lib/fitting/report/test.rb |
fitting-2.16.0 | lib/fitting/report/test.rb |
fitting-2.15.0 | lib/fitting/report/test.rb |