Sha256: 15672100eb7bae1cea62d477ce13d0b32881d53edf70837567f395459ef2f87d
Contents?: true
Size: 641 Bytes
Versions: 9
Compression:
Stored size: 641 Bytes
Contents
describe "Mocha Teaspoon.Runner", -> beforeEach -> @runSpy = mocha.run = sinon.spy() @runner = new Teaspoon.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: Teaspoon.Reporters.Console) # else # assert.calledOnce(spy, reporter: Teaspoon.Reporters.HTML)
Version data entries
9 entries across 9 versions & 1 rubygems