Skip to content
Browse files

Remove asserts for js ext stuff thats not used any more

  • Loading branch information...
1 parent b865576 commit dea40350820a51c72924bd10817d93b2d5c2229b @dhh dhh committed May 24, 2011
Showing with 0 additions and 3 deletions.
  1. +0 −3 railties/test/generators/app_generator_test.rb
View
3 railties/test/generators/app_generator_test.rb
@@ -174,7 +174,6 @@ def test_creation_of_a_test_directory
def test_jquery_is_the_default_javascript_library
run_generator
- assert_file "config/application.rb", /#\s+config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+%w\(prototype prototype_ujs\)/
assert_file "app/assets/javascripts/application.js" do |contents|
assert_match %r{^//= require jquery}, contents
assert_match %r{^//= require jquery_ujs}, contents
@@ -186,7 +185,6 @@ def test_jquery_is_the_default_javascript_library
def test_other_javascript_libraries
run_generator [destination_root, '-j', 'prototype']
- assert_file "config/application.rb", /#\s+config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+%w\(prototype prototype_ujs\)/
assert_file "app/assets/javascripts/application.js" do |contents|
assert_match %r{^//= require prototype}, contents
assert_match %r{^//= require prototype_ujs}, contents
@@ -198,7 +196,6 @@ def test_other_javascript_libraries
def test_javascript_is_skipped_if_required
run_generator [destination_root, "--skip-javascript"]
- assert_file "config/application.rb", /^\s+# config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+%w\(\)/
assert_file "app/assets/javascripts/application.js" do |contents|
assert_no_match %r{^//=\s+require\s}, contents
end

0 comments on commit dea4035

Please sign in to comment.
Something went wrong with that request. Please try again.