Class: TddDeploy::Assertions::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/tdd_deploy/assertions.rb

Overview

Stats

Stats is a class which acts as a singleton container for test statistics & messages test_count, messages, failiure count, and failure messages are all instance variables of Stats. This avoids nasty complications which can come us when using instance, class, and class-instance variables because the actual variables are defined when they are initialized - which can easily differ from where they are declared.

Class Attribute Summary collapse

Class Attribute Details

.test_resultsObject

Returns the value of attribute test_results.



27
28
29
# File 'lib/tdd_deploy/assertions.rb', line 27

def test_results
  @test_results
end