Class: JasmineParser::LocationFiner
- Inherits:
-
Object
- Object
- JasmineParser::LocationFiner
- Defined in:
- lib/jasmine-parser/location_finder.rb
Instance Method Summary collapse
- #all_examples ⇒ Object (also: #to_hash, #[])
- #example_count ⇒ Object
-
#initialize(suite) ⇒ LocationFiner
constructor
A new instance of LocationFiner.
- #test_names ⇒ Object
Constructor Details
#initialize(suite) ⇒ LocationFiner
Returns a new instance of LocationFiner.
35 36 37 |
# File 'lib/jasmine-parser/location_finder.rb', line 35 def initialize(suite) sort_specs suite, all_examples end |
Instance Method Details
#all_examples ⇒ Object Also known as: to_hash, []
39 40 41 |
# File 'lib/jasmine-parser/location_finder.rb', line 39 def all_examples @all_examples ||= {} end |
#example_count ⇒ Object
46 47 48 |
# File 'lib/jasmine-parser/location_finder.rb', line 46 def example_count all_examples.keys.size end |
#test_names ⇒ Object
50 51 52 |
# File 'lib/jasmine-parser/location_finder.rb', line 50 def test_names all_examples.keys end |