Sha256: 11580ee72316b029993351b458f12dc24c271d8a9463c5b385cb2c5088601475
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
describe "Teabag", -> describe "class level API", -> it "has the expected API", -> expect(Object.keys(Teabag)).toEqual([ "defer", "slow", "fixturePath", "finished", "Reporters", "Date", "location", "execute", "Runner", "version" ]) describe "@execute", -> beforeEach -> Teabag.defer = false it "allows defering (thus not instantiating the runner)", -> Teabag.defer = true spy = spyOn(Teabag, "Runner") Teabag.execute() expect(spy).wasNotCalled() it "will execute if it should", -> spy = spyOn(Teabag, "Runner") Teabag.execute() expect(spy).toHaveBeenCalled()
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.3.2 | spec/javascripts/teabag/base/teabag_spec.coffee |
teabag-0.3.1 | spec/javascripts/teabag/base/teabag_spec.coffee |
teabag-0.3.0 | spec/javascripts/teabag/base/teabag_spec.coffee |