aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-04-11 02:28:35 +0930
committerMatthew Draper <matthew@trebex.net>2014-04-11 22:47:54 +0930
commitf612c2b0526e326eb6c25a7bbf375ac3ac793a3c (patch)
tree508cd469311970ac48d0fcc48602ee0a726da4d2 /railties/test
parentd8d0fcb06aae164b57695749ee394eee6996ee4d (diff)
downloadrails-f612c2b0526e326eb6c25a7bbf375ac3ac793a3c.tar.gz
rails-f612c2b0526e326eb6c25a7bbf375ac3ac793a3c.tar.bz2
rails-f612c2b0526e326eb6c25a7bbf375ac3ac793a3c.zip
Move assets precompile (and version) to an initializer
sprockets-rails 2.1 needs the precompile list to be available in all environments.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 8e1aeddb2b..b7bc721247 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -237,6 +237,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_generator_if_skip_sprockets_is_given
run_generator [destination_root, "--skip-sprockets"]
+ assert_no_file "config/initializers/assets.rb"
assert_file "config/application.rb" do |content|
assert_match(/#\s+require\s+["']sprockets\/railtie["']/, content)
end
@@ -252,7 +253,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_no_match(/config\.assets\.digest = true/, content)
assert_no_match(/config\.assets\.js_compressor = :uglifier/, content)
assert_no_match(/config\.assets\.css_compressor = :sass/, content)
- assert_no_match(/config\.assets\.version = '1\.0'/, content)
end
end