Sha256: 448158c62ea438f9e6dec70dba3fe3f830a3856f562fda367333bd1978d049f9

Contents?: true

Size: 936 Bytes

Versions: 2

Compression:

Stored size: 936 Bytes

Contents

module Fitting
  module Report
    class Test
      def initialize(test)
        @test = test
        @prefix = false
        @action = false
        @response = false
        @combination = false
      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

2 entries across 2 versions & 1 rubygems

Version Path
fitting-2.14.1 lib/fitting/report/test.rb
fitting-2.14.0 lib/fitting/report/test.rb