Class: RailsProof::TestInspector
- Inherits:
-
Object
- Object
- RailsProof::TestInspector
- Defined in:
- lib/rails_proof/test_inspector.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #count ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(source) ⇒ TestInspector
constructor
A new instance of TestInspector.
- #test_cases ⇒ Object
Constructor Details
#initialize(source) ⇒ TestInspector
Returns a new instance of TestInspector.
5 6 7 |
# File 'lib/rails_proof/test_inspector.rb', line 5 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/rails_proof/test_inspector.rb', line 3 def source @source end |
Instance Method Details
#count ⇒ Object
13 14 15 |
# File 'lib/rails_proof/test_inspector.rb', line 13 def count test_cases.count end |
#empty? ⇒ Boolean
17 18 19 |
# File 'lib/rails_proof/test_inspector.rb', line 17 def empty? test_cases.empty? end |
#test_cases ⇒ Object
9 10 11 |
# File 'lib/rails_proof/test_inspector.rb', line 9 def test_cases @test_cases ||= rails_style_tests + method_style_tests end |