Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a pointer to Chai's includeStack option

  • Loading branch information...
commit 458fceeadb6bc8a6b18cfb9747806876ad168972 1 parent 057a7ca
Jo Liss joliss authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.md
9 README.md
View
@@ -107,7 +107,7 @@ $ bundle exec rake konacha:run SPEC=foo_spec,bar_spec,etc_spec
Since Konacha integrates with the asset pipeline, using setup helpers in your specs is
easy. Just create a `spec_helper.js` or `spec_helper.js.coffee` file in `specs/javascripts`
-and require it in your tests:
+and require it in your tests, like so:
```javascript
//= require spec_helper
@@ -118,6 +118,13 @@ describe("Array#sum", function() {
});
```
+The `spec_helper` is a good place to set Mocha and Chai options as well, for instance:
+
+```javascript
+// Show stack trace on failing assertion.
+chai.Assertion.includeStack = true;
+```
+
## Directives and Asset Bundling
We suggest that you explicitly require just the assets necessary for each spec. In CI
Please sign in to comment.
Something went wrong with that request. Please try again.