Sha256: 8f13e399be43c8183b590f0548c2a98051b410da1d6131c344363f4ec24f8dbc
Contents?: true
Size: 907 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.3.5 | spec/javascripts/teabag/base/teabag_spec.coffee |
teabag-0.3.4 | spec/javascripts/teabag/base/teabag_spec.coffee |
teabag-0.3.3 | spec/javascripts/teabag/base/teabag_spec.coffee |