Browse files

Add a pointer to Chai's includeStack option

  • Loading branch information...
1 parent 057a7ca commit 458fceeadb6bc8a6b18cfb9747806876ad168972 @joliss joliss committed Aug 17, 2012
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

0 comments on commit 458fcee

Please sign in to comment.