mocha_rails icon indicating copy to clipboard operation
mocha_rails copied to clipboard

Options for assertion library, Mocha "interface"

Open quartzmo opened this issue 13 years ago • 2 comments

The user needs to be able to override:

  • Assertion librarby - default "chai", any string ok since user can implement own
  • Mocha "interface" - default "bdd", any string ok since user can implement own

quartzmo avatar Feb 11 '12 17:02 quartzmo

+1

sandstrom avatar May 29 '12 16:05 sandstrom

For the mean time this is also possible to set via JS, e.g.

window.assert = chai.assert
mocha.setup({ ui: 'bdd', globals: ['LiveReload'] })

meleyal avatar Sep 19 '13 17:09 meleyal