Class: JasmineParser::LocationFiner

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine-parser/location_finder.rb

Instance Method Summary collapse

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_examplesObject Also known as: to_hash, []



39
40
41
# File 'lib/jasmine-parser/location_finder.rb', line 39

def all_examples
  @all_examples ||= {}
end

#example_countObject



46
47
48
# File 'lib/jasmine-parser/location_finder.rb', line 46

def example_count
  all_examples.keys.size
end

#test_namesObject



50
51
52
# File 'lib/jasmine-parser/location_finder.rb', line 50

def test_names
  all_examples.keys
end