modeset/teabag — pull request #37 by ysbaddaden (2013-03-15 16:14:28+00:00)
Title: angular scenario adapter

This is an angular scenario adapter for Teabag.

The console reporter using phantomjs is working as expected. The HTML reporter is also working (at least in Chrome).

But the full report doesn't work correctly. It either doesn't work (hits maximum call stack) or displays undefined for the suite name.

Also, teabag fixtures cannot be used, because mocks must happen inside the app, and cannot be defined within the test suite (thought you may still load them manually).

To use simply create a new teabag test suite, for example:

# config/initializers/teabag.rb
config.suite :e2e do |suite|
suite.matchers = nil
suite.helper = "e2e_helper"
suite.javascripts = ["teabag-angular"]
suite.stylesheets = ["teabag"]
end

# spec/javascripts/e2e_helper.js
//= require_tree ./scenarios/first_scenario