Sha256: 6e6491b1aab58e762d65527b5b7eb69b98cc69e576af0304e4d2eccdf52a68cf
Contents?: true
Size: 900 Bytes
Versions: 6
Compression:
Stored size: 900 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("root") 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
6 entries across 6 versions & 1 rubygems