Sha256: ad2d63dfb2d95c8d2403f074c260d86c9545b398b21def615cc26c39bac4d141

Contents?: true

Size: 1.38 KB

Versions: 4

Compression:

Stored size: 1.38 KB

Contents

Teabag.setup do |config|

  config.root = Teabag::Engine.root
  config.asset_paths << Teabag::Engine.root.join('lib/teabag')

  config.suite do |suite|
    suite.matcher = "{spec/javascripts,spec/dummy/app/assets/javascripts/specs}/**/*_spec.{js,js.coffee,coffee}"
    suite.javascripts = ["teabag/jasmine"]
  end

  config.suite :jasmine do |suite|
    suite.matcher = "spec/javascripts/**/*_jspec.{js,js.coffee,coffee}"
    suite.javascripts = ["teabag/jasmine"]
    suite.helper = "jasmine_helper"
  end

  config.suite :mocha do |suite|
    suite.matcher = "spec/javascripts/**/*_mspec.{js,js.coffee,coffee}"
    suite.javascripts = ["teabag/mocha"]
    suite.helper = "mocha_helper"
  end

  config.suite :qunit do |suite|
    suite.matcher = "test/javascripts/**/*_test.{js,js.coffee,coffee}"
    suite.javascripts = ["teabag/qunit"]
    suite.helper = "qunit_helper"
  end

  config.suite :angular do |suite|
    suite.matcher = "spec/javascripts/**/*_aspec.{js,js.coffee,coffee}"
    suite.javascripts = ["teabag/angular"]
    suite.helper = "angular_helper"
  end

  #config.suite :integration do |suite|
  #  suite.matcher = "spec/dummy/app/assets/javascripts/integration/*_spec.{js,js.coffee,coffee}"
  #  suite.javascripts = ["teabag/jasmine"]
  #  suite.helper = nil
  #end

end if defined?(Teabag) && Teabag.respond_to?(:setup) # let Teabag be undefined outside of development/test/asset groups

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
teabag-0.7.3 spec/dummy/config/initializers/teabag.rb
teabag-0.7.2 spec/dummy/config/initializers/teabag.rb
teabag-0.7.1 spec/dummy/config/initializers/teabag.rb
teabag-0.7.0 spec/dummy/config/initializers/teabag.rb