Class: Jasmine::Results

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#suitesObject (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