Permalink
Browse files

Makes test use the new config.action_view.javascript_expansions[:defa…

…ults] initialization syntax
  • Loading branch information...
1 parent 42be67e commit 38f1ea8fe267947f4baf832d3b15ee5b83f18f71 @spastorino spastorino committed with tenderlove Jul 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/generators/app_generator_test.rb
@@ -138,7 +138,7 @@ def test_prototype_and_test_unit_are_added_by_default
def test_prototype_and_test_unit_are_skipped_if_required
run_generator [destination_root, "--skip-prototype", "--skip-testunit"]
- assert_file "config/application.rb", /^\s+config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+\[\]/
+ assert_file "config/application.rb", /^\s+config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+%w\(\)/
assert_file "public/javascripts/application.js"
assert_no_file "public/javascripts/prototype.js"
assert_no_file "public/javascripts/rails.js"

0 comments on commit 38f1ea8

Please sign in to comment.