Class: Jasmine::Results
- Inherits:
-
Object
- Object
- Jasmine::Results
- Defined in:
- lib/jasmine/results.rb
Instance Attribute Summary collapse
-
#suites ⇒ Object
readonly
Returns the value of attribute suites.
Instance Method Summary collapse
- #example_location_for(spec_description) ⇒ Object
- #for_spec_id(id) ⇒ Object
-
#initialize(result_hash, suite_hash, example_locations) ⇒ Results
constructor
A new instance of Results.
Constructor Details
#initialize(result_hash, suite_hash, example_locations) ⇒ Results
Returns a new instance of Results.
5 6 7 8 9 |
# File 'lib/jasmine/results.rb', line 5 def initialize(result_hash, suite_hash, example_locations) @suites = suite_hash @results = result_hash @example_locations = example_locations end |
Instance Attribute Details
#suites ⇒ Object (readonly)
Returns the value of attribute suites.
4 5 6 |
# File 'lib/jasmine/results.rb', line 4 def suites @suites end |
Instance Method Details
#example_location_for(spec_description) ⇒ Object
15 16 17 |
# File 'lib/jasmine/results.rb', line 15 def example_location_for(spec_description) @example_locations[spec_description] end |
#for_spec_id(id) ⇒ Object
11 12 13 |
# File 'lib/jasmine/results.rb', line 11 def for_spec_id(id) @results[id] end |