Permalink
Browse files

dragdrop was tested twice and effects.js was missing, added checks fo…

…r controls.js, dragdrop.js and effects.js to another test
  • Loading branch information...
1 parent 14b880f commit 81cf98d34268546532aa763b2837b3a4c87e60e1 @spastorino spastorino committed Dec 16, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/test/generators/app_generator_test.rb
View
5 railties/test/generators/app_generator_test.rb
@@ -137,7 +137,7 @@ def test_prototype_and_test_unit_are_added_by_default
assert_file "public/javascripts/rails.js"
assert_file "public/javascripts/controls.js"
assert_file "public/javascripts/dragdrop.js"
- assert_file "public/javascripts/dragdrop.js"
+ assert_file "public/javascripts/effects.js"
assert_file "test"
end
@@ -154,6 +154,9 @@ def test_config_prototype_javascript_library
assert_file "config/application.rb", /#\s+config\.action_view\.javascript_expansions\[:defaults\]\s+=\s+%w\(jquery rails\)/
assert_file "public/javascripts/application.js"
assert_file "public/javascripts/prototype.js"
+ assert_file "public/javascripts/controls.js"
+ assert_file "public/javascripts/dragdrop.js"
+ assert_file "public/javascripts/effects.js"
assert_file "public/javascripts/rails.js", /prototype/
end

0 comments on commit 81cf98d

Please sign in to comment.