Class: RestMyCase::Judge::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rest_my_case/judge/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(trial_case) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/rest_my_case/judge/base.rb', line 6

def initialize(trial_case)
  @trial_case = trial_case
  @performed_use_cases = []
  @use_case_that_aborted = nil
end

Instance Method Details

#determine_the_sentenceObject



12
13
14
15
16
17
18
19
# File 'lib/rest_my_case/judge/base.rb', line 12

def determine_the_sentence
  run_setup_methods
  run_perform_methods
  run_rollback_methods
  run_final_methods

  @trial_case.should_abort = !@use_case_that_aborted.nil?
end