Class: ResultsKeeper
- Inherits:
-
Object
- Object
- ResultsKeeper
- Includes:
- Singleton
- Defined in:
- lib/results_keeper.rb
Instance Attribute Summary collapse
-
#results_sender ⇒ Object
readonly
Returns the value of attribute results_sender.
-
#test_started_time ⇒ Object
readonly
Returns the value of attribute test_started_time.
Instance Method Summary collapse
-
#initialize ⇒ ResultsKeeper
constructor
A new instance of ResultsKeeper.
- #send_revision ⇒ Object
- #send_revision_complete ⇒ Object
- #send_test(scenario) ⇒ Object
- #test_started(scenarion = nil) ⇒ Object
Constructor Details
#initialize ⇒ ResultsKeeper
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_sender ⇒ Object (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_time ⇒ Object (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_revision ⇒ Object
15 16 17 |
# File 'lib/results_keeper.rb', line 15 def send_revision @results_sender.send_revision end |
#send_revision_complete ⇒ Object
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 |