Sha256: f0b956ccf49cec46ab0317e91d799af835988c35828fd3b50b77bd785a7641fa

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

Contents

require 'spec_helper'

describe Jasmine::Results do
  it "should be able to return suites" do
    suites = {:some => 'suite'}
    Jasmine::Results.new({}, suites, {}).suites.should == suites
  end

  it "should return a result for a particular spec id" do
    result1 = {:some => 'result'}
    result2 = {:some => 'other result'}
    raw_results = {'1' => result1, '2' => result2 }
    results = Jasmine::Results.new(raw_results, {}, {})
    results.for_spec_id('1').should == result1
    results.for_spec_id('2').should == result2
  end

  it "should return an example location for a particular string" do
    example_location1 = {:some => 'spec location'}
    example_location2 = {:some => 'other spec location'}
    example_locations = {'foo bar' => example_location1, 'baz quux' => example_location2 }
    results = Jasmine::Results.new({}, {}, [])
    results.example_locations = example_locations
    results.example_location_for('foo bar').should == example_location1
    results.example_location_for('baz quux').should == example_location2
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rally-jasmine-1.2.0.18 spec/results_spec.rb
rally-jasmine-1.2.0.12 spec/results_spec.rb
rally-jasmine-1.2.0.11 spec/results_spec.rb
rally-jasmine-1.2.0.10 spec/results_spec.rb
rally-jasmine-1.2.0.8 spec/results_spec.rb
rally-jasmine-1.2.0.7 spec/results_spec.rb
rally-jasmine-1.2.0.6 spec/results_spec.rb
rally-jasmine-1.2.0.5 spec/results_spec.rb