Class: ResultsKeeper

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/results_keeper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResultsKeeper

Returns a new instance of ResultsKeeper.



11
12
13
# File 'lib/results_keeper.rb', line 11

def initialize
  @results_sender = RkCucumber::ResultsSender.new
end

Instance Attribute Details

#results_senderObject (readonly)

Returns the value of attribute results_sender.



9
10
11
# File 'lib/results_keeper.rb', line 9

def results_sender
  @results_sender
end

#test_started_timeObject (readonly)

Returns the value of attribute test_started_time.



9
10
11
# File 'lib/results_keeper.rb', line 9

def test_started_time
  @test_started_time
end

Instance Method Details

#send_revisionObject



15
16
17
# File 'lib/results_keeper.rb', line 15

def send_revision
  @results_sender.send_revision
end

#send_revision_completeObject



19
20
21
# File 'lib/results_keeper.rb', line 19

def send_revision_complete
  @results_sender.send_revision_complete
end

#send_test(scenario) ⇒ Object



23
24
25
26
27
# File 'lib/results_keeper.rb', line 23

def send_test(scenario)
  unless @results_sender.send_test(scenario, @test_started_time)
    @results_sender.add_test_to_tmp(scenario, @test_started_time)
  end
end

#test_started(scenarion = nil) ⇒ Object



29
30
31
# File 'lib/results_keeper.rb', line 29

def test_started(scenarion=nil)
  @test_started_time = Time.now
end