Permalink
Browse files

Test added to check ApplicationControllerTest file.

  • Loading branch information...
1 parent c49de87 commit 4ad93b71816c4b8b4403d2f8ab8ddd18211dfcb9 @arunagw committed Oct 29, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/test/generators/app_generator_test.rb
@@ -199,6 +199,13 @@ def test_generator_if_skip_active_record_is_given
assert_file "test/performance/browsing_test.rb"
end
+ def test_application_controller_test_file
+ run_generator
+ assert_file "test/functional/application_controller_test.rb" do |content|
+ assert_match(/class ApplicationControllerTest < ActionController::TestCase/, content)
+ end
+ end
+
def test_generator_if_skip_sprockets_is_given
run_generator [destination_root, "--skip-sprockets"]
assert_file "config/application.rb" do |content|

0 comments on commit 4ad93b7

Please sign in to comment.