diff options
| author | Thomas Haddad | 2016-11-14 14:49:53 +0100 | 
|---|---|---|
| committer | Thomas Haddad | 2016-11-14 14:49:53 +0100 | 
| commit | bf7e7b9db4261aed7eb317ffb28c1652eaba5a18 (patch) | |
| tree | b6b0a699e32ac8fca81da218cc1206c36c738f4a /config/application.rb | |
| parent | 2553461e7ac1a2a1ceb4d983051bd7962acf8a7a (diff) | |
| download | chouette-core-bf7e7b9db4261aed7eb317ffb28c1652eaba5a18.tar.bz2 | |
Add Teaspoon / Phantomjs & action tests
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'config/application.rb')
| -rw-r--r-- | config/application.rb | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/config/application.rb b/config/application.rb index 93a4cc8fd..e37e0a0a9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -29,5 +29,14 @@ module ChouetteIhm      # Configure Browserify to use babelify to compile ES6      config.browserify_rails.commandline_options = "-t [ babelify --presets [ es2015 react ] ]" +    unless Rails.env.production? +        # Work around sprockets+teaspoon mismatch: +        Rails.application.config.assets.precompile += %w(spec_helper.js) +        # Make sure Browserify is triggered when +        # asked to serve javascript spec files +        config.browserify_rails.paths << lambda { |p| +            p.start_with?(Rails.root.join("spec/javascripts").to_s) +        } +    end    end  end | 
