2 // Teaspoon includes some support files, but you can use anything from your own support path too.
 
   3 // require support/expect
 
   4 // require support/sinon
 
   5 //= require support/chai
 
   6 //= require support/chai-jq-0.0.7
 
   7 // require support/your-support-file
 
   9 // PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
 
  10 // Use this polyfill to avoid the confusion.
 
  11 //= require support/phantomjs-shims
 
  13 // You can require your own javascript files here. By default this will include everything in application, however you
 
  14 // may get better load performance if you require the specific files that are being used in the spec that tests them.
 
  15 //= require application
 
  17 // Deferring execution
 
  18 // If you're using CommonJS, RequireJS or some other asynchronous library you can defer execution. Call
 
  19 // Teaspoon.execute() after everything has been loaded. Simple example of a timeout:
 
  21 // Teaspoon.defer = true
 
  22 // setTimeout(Teaspoon.execute, 1000)
 
  25 // By default Teaspoon will look for files that match _spec.{js,js.coffee,.coffee}. Add a filename_spec.js file in your
 
  26 // spec path and it'll be included in the default suite automatically. If you want to customize suites, check out the
 
  27 // configuration in teaspoon_env.rb
 
  30 // If you'd rather require your spec files manually (to control order for instance) you can disable the suite matcher in
 
  31 // the configuration and use this file as a manifest.
 
  33 // For more information: http://github.com/modeset/teaspoon
 
  36 // If you're using Chai, you'll probably want to initialize your preferred assertion style. You can read more about Chai
 
  37 // at: http://chaijs.com/guide/styles
 
  39 window.assert = chai.assert;
 
  40 window.expect = chai.expect;
 
  41 window.should = chai.should();