Sha256: 7565a4c60c77cc0f8c97c9b76b6bb9cf5a1fe95ffbf2657d640575f6af86431e
Contents?: true
Size: 927 Bytes
Versions: 5
Compression:
Stored size: 927 Bytes
Contents
describe "Teaspoon", -> describe "class level API", -> it "has the expected API", -> return unless Object.keys # can't test in ie keys = Object.keys(Teaspoon) # 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") describe ".execute", -> beforeEach -> Teaspoon.defer = false it "allows defering (thus not instantiating the runner)", -> Teaspoon.defer = true spy = spyOn(Teaspoon, "Runner") Teaspoon.execute() expect(spy).wasNotCalled() it "will execute if it should", -> spy = spyOn(Teaspoon, "Runner") Teaspoon.execute() expect(spy).toHaveBeenCalled()
Version data entries
5 entries across 5 versions & 1 rubygems