Sha256: b358cce61ea17b91de706e697614a615eb93736a32cfb5b67ddb1b910b070b0b
Contents?: true
Size: 633 Bytes
Versions: 19
Compression:
Stored size: 633 Bytes
Contents
describe "Mocha Teabag.Runner", -> beforeEach -> @runSpy = mocha.run = sinon.spy() @runner = new Teabag.Runner() describe "constructor", -> it "calls run on the mocha env", -> @runner.setup = sinon.stub() assert.calledOnce(@runSpy) describe "#setup", -> it "adds the reporter to the env", -> # spy = mocha.setup = sinon.spy() # @runner.params = {grep: "foo"} # @runner.setup() # if window.navigator.userAgent.match(/PhantomJS/) # assert.calledOnce(spy, reporter: Teabag.Reporters.Console) # else # assert.calledOnce(spy, reporter: Teabag.Reporters.HTML)
Version data entries
19 entries across 19 versions & 1 rubygems