Class: Fitting::Report::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/fitting/report/test.rb

Instance Method Summary collapse

Constructor Details

#initialize(test) ⇒ Test

Returns a new instance of Test.



4
5
6
7
8
9
10
# File 'lib/fitting/report/test.rb', line 4

def initialize(test)
  @test = test
  @prefix = false
  @action = false
  @response = false
  @combination = false
end

Instance Method Details

#bodyObject



24
25
26
# File 'lib/fitting/report/test.rb', line 24

def body
  @test['response']['body']
end

#is_there_a_prefix?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/fitting/report/test.rb', line 44

def is_there_a_prefix?
  @prefix
end

#is_there_an_actions?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/fitting/report/test.rb', line 48

def is_there_an_actions?
  @action
end

#is_there_an_combinations?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/fitting/report/test.rb', line 56

def is_there_an_combinations?
  @combination
end

#is_there_an_responses?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/fitting/report/test.rb', line 52

def is_there_an_responses?
  @response
end

#mark_actionObject



32
33
34
# File 'lib/fitting/report/test.rb', line 32

def mark_action
  @action = true
end

#mark_combinationObject



40
41
42
# File 'lib/fitting/report/test.rb', line 40

def mark_combination
  @combination = true
end

#mark_prefixObject



28
29
30
# File 'lib/fitting/report/test.rb', line 28

def mark_prefix
  @prefix = true
end

#mark_responseObject



36
37
38
# File 'lib/fitting/report/test.rb', line 36

def mark_response
  @response = true
end

#methodObject



16
17
18
# File 'lib/fitting/report/test.rb', line 16

def method
  @test['method']
end

#pathObject



12
13
14
# File 'lib/fitting/report/test.rb', line 12

def path
  @test['path']
end

#statusObject



20
21
22
# File 'lib/fitting/report/test.rb', line 20

def status
  @test['response']['status'].to_s
end