Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test added to check ApplicationControllerTest file.

  • Loading branch information...
commit 4ad93b71816c4b8b4403d2f8ab8ddd18211dfcb9 1 parent c49de87
@arunagw authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/test/generators/app_generator_test.rb
View
7 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|
Please sign in to comment.
Something went wrong with that request. Please try again.