2809: Move coffee-rails out of :assets section to make tests thread-safe.
authorTom Clegg <tom@curoverse.com>
Thu, 15 May 2014 16:30:25 +0000 (12:30 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 15 May 2014 18:18:21 +0000 (14:18 -0400)
Otherwise, when Rails decides to build assets while running the test
suite, we get:

WARN: tilt autoloading 'coffee_script' in a non thread-safe way; explicit require 'coffee_script' suggested.

apps/workbench/Gemfile

index 54580251cd93e2f27eb44ebf7c083f8697c23fe9..754d5c60437c8d1844902fd1d250ae0af92f2336 100644 (file)
@@ -12,11 +12,17 @@ gem 'multi_json'
 gem 'oj'
 gem 'sass'
 
+# Note: keeping this out of the "group :assets" section "may" allow us
+# to use Coffescript for UJS responses. It also prevents a
+# warning/problem when running tests: "WARN: tilt autoloading
+# 'coffee_script' in a non thread-safe way; explicit require
+# 'coffee_script' suggested."
+gem 'coffee-rails'
+
 # Gems used only for assets and not required
 # in production environments by default.
 group :assets do
   gem 'sass-rails'
-  gem 'coffee-rails'
 
   # See https://github.com/sstephenson/execjs#readme for more supported runtimes
   gem 'therubyracer', :platforms => :ruby