Menu
  • HOME
  • TAGS

Is it possible to use factory_girl.js with teaspoon?

javascript,ruby-on-rails,node.js,coffeescript,teaspoon

Teaspoon doesn't use node (mostly), and is primarily rails based in terms of the runner foundation. On top of the rails layer, it uses Jasmine, Mocha, or QUnit as browser test frameworks. Trying to load a node module in to that is not really easy, or possible in some cases....

Visit pages using PhantomJS directly when writing specs with TeaSpoon - Jasmine

javascript,ruby-on-rails,phantomjs,specs,teaspoon

With Teaspoon the specs are not run within the context of phantomjs, they are loaded within the context of the browser, and so don't have access to phantomjs. Only the internal phantomjs driver (runner.js in the repo) has any concept of phantomjs, which loads an html page with your javascripts...

Invalidating an Ember Simple Auth session while testing

ember.js,ember-simple-auth,teaspoon

I'd just override the sessionInvalidationSucceeded action of your application route in test mode so it doesn't replace the location.

Fail run Teaspoon CLI but success in browser

teaspoon

The issue was about PhantomJS version. Use 2.0.0 now and tests are adequate in CLI.