Sha256: a786242c6384d00208f0c1e32e4043b11bff9f4cdc4847ff4def5ce8e1e895b0
Contents?: true
Size: 907 Bytes
Versions: 2
Compression:
Stored size: 907 Bytes
Contents
describe "Teabag", -> describe "class level API", -> it "has the expected API", -> keys = Object.keys(Teabag) # common expect(keys).toContain("defer") expect(keys).toContain("slow") expect(keys).toContain("fixturePath") expect(keys).toContain("finished") expect(keys).toContain("execute") expect(keys).toContain("version") # caching expect(keys).toContain("Date") expect(keys).toContain("location") expect(keys).toContain("console") 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.4.0 | spec/javascripts/teabag/base/teabag_spec.coffee |
teabag-0.3.6 | spec/javascripts/teabag/base/teabag_spec.coffee |