Skip to content


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
@@ -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 `` file in `specs/javascripts`
-and require it in your tests:
+and require it in your tests, like so:
//= 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:
+// 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.