diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-13 02:48:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 02:48:06 +0900 |
commit | 047d4f260555b4c69fe6ae2d09d4a4cd95fad79a (patch) | |
tree | 5adbf3aad2cb3a370f53d2e577142470e06f3c34 /railties/test/generators | |
parent | 662f14814eacdc100d0cd511aa05db34119de18a (diff) | |
parent | 9bf5545ef7ce13cfc55b35f7d160897dee5cbe0e (diff) | |
download | rails-047d4f260555b4c69fe6ae2d09d4a4cd95fad79a.tar.gz rails-047d4f260555b4c69fe6ae2d09d4a4cd95fad79a.tar.bz2 rails-047d4f260555b4c69fe6ae2d09d4a4cd95fad79a.zip |
Merge pull request #34690 from gmcgibbon/rm_integration_test_generator_suffix
Remove redundant suffixes on generated integration tests.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/integration_test_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/integration_test_generator_test.rb b/railties/test/generators/integration_test_generator_test.rb index 82791f1a27..2ec4895096 100644 --- a/railties/test/generators/integration_test_generator_test.rb +++ b/railties/test/generators/integration_test_generator_test.rb @@ -15,4 +15,11 @@ class IntegrationTestGeneratorTest < Rails::Generators::TestCase run_generator %w(iguchi/integration) assert_file "test/integration/iguchi/integration_test.rb", /class Iguchi::IntegrationTest < ActionDispatch::IntegrationTest/ end + + def test_test_suffix_is_not_duplicated + run_generator %w(integration_test) + + assert_no_file "test/integration/integration_test_test.rb" + assert_file "test/integration/integration_test.rb" + end end |