Sha256: 34f785501d135f8c39d69f57c17f486025fe1191f7abaae97edad8ac14c9603f
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
describe 'HeadlessReporterResult', -> beforeEach -> HeadlessReporterResult.specLineNumbers = { 'one': { 'name': [ 1 ], 'of': [ 2, 9 ], 'test': [ 3, 10 ], 'other': [ 7 ] } } it 'should find the best spec lines', -> result = new HeadlessReporterResult('test', [ 'name', 'of', 'test' ]) expect(result._findSpecLine().lineNumber).toEqual(3) result = new HeadlessReporterResult('test', [ 'other', 'of', 'test' ]) expect(result._findSpecLine().lineNumber).toEqual(10) describe 'jasmine.HeadlessReporter', -> reporter = null beforeEach -> reporter = new jasmine.HeadlessReporter() it 'should stop running specs if there are errors reported', -> # otherwise it gets really confusing! suite = { finish: -> null } spec = new jasmine.Spec("env", suite, "test") spyOn(reporter, 'hasError').andReturn(true) spyOn(spec, 'finish') spyOn(suite, 'finish') reporter.reportSpecStarting(spec) expect(spec.finish).toHaveBeenCalled() expect(suite.finish).toHaveBeenCalled()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jasmine-headless-webkit-0.6.3 | spec/javascripts/jasmine.headless-reporter_spec.coffee |
jasmine-headless-webkit-0.6.2 | spec/javascripts/jasmine.headless-reporter_spec.coffee |