aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-06 04:51:44 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-01-06 04:51:44 -0200
commit0ff3e9466a4f476ee2e56d9e2b40acce01924683 (patch)
tree2a76dae2f2b948f3b7cf43c817d03e041b714ef9 /railties/test/application
parentc6bdaf1282e44c2aca8611b900bd1a7f55cd3d12 (diff)
parent229064cf3a4da96ad3e30114d99288bf6660ed58 (diff)
downloadrails-0ff3e9466a4f476ee2e56d9e2b40acce01924683.tar.gz
rails-0ff3e9466a4f476ee2e56d9e2b40acce01924683.tar.bz2
rails-0ff3e9466a4f476ee2e56d9e2b40acce01924683.zip
Merge pull request #22939 from y-yagi/make_generated_controller_test_file_work_correctly
make generated controller test work correctly
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/test_runner_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb
index 92a9b99fd8..868153762d 100644
--- a/railties/test/application/test_runner_test.rb
+++ b/railties/test/application/test_runner_test.rb
@@ -234,6 +234,11 @@ module ApplicationTests
assert_match "0 failures, 0 errors, 0 skips", run_test_command('')
end
+ def test_generated_controller_works_with_rails_test
+ create_controller
+ assert_match "0 failures, 0 errors, 0 skips", run_test_command('')
+ end
+
def test_run_multiple_folders
create_test_file :models, 'account'
create_test_file :controllers, 'accounts_controller'
@@ -449,6 +454,10 @@ module ApplicationTests
run_migration
end
+ def create_controller
+ script 'generate controller admin/dashboard index'
+ end
+
def run_migration
Dir.chdir(app_path) { `bin/rake db:migrate` }
end