aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShota Iguchi <shota-iguchi@cookpad.com>2017-02-16 16:47:43 +0900
committerShota Iguchi <shota-iguchi@cookpad.com>2017-02-16 17:37:51 +0900
commit6affdbee2fbef912542930a79f49545a4bffb063 (patch)
tree550403ffef602c8b327ae6333c39501763b28616
parent56f098155bee7ce74d8ce2f5c1a343d3200c0458 (diff)
downloadrails-6affdbee2fbef912542930a79f49545a4bffb063.tar.gz
rails-6affdbee2fbef912542930a79f49545a4bffb063.tar.bz2
rails-6affdbee2fbef912542930a79f49545a4bffb063.zip
Add test for generate namespaced integration test
-rw-r--r--railties/test/generators/integration_test_generator_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/test/generators/integration_test_generator_test.rb b/railties/test/generators/integration_test_generator_test.rb
index 8bcc02440a..9358b63bd4 100644
--- a/railties/test/generators/integration_test_generator_test.rb
+++ b/railties/test/generators/integration_test_generator_test.rb
@@ -3,10 +3,14 @@ require "rails/generators/rails/integration_test/integration_test_generator"
class IntegrationTestGeneratorTest < Rails::Generators::TestCase
include GeneratorsTestHelper
- arguments %w(integration)
def test_integration_test_skeleton_is_created
- run_generator
+ run_generator %w(integration)
assert_file "test/integration/integration_test.rb", /class IntegrationTest < ActionDispatch::IntegrationTest/
end
+
+ def test_namespaced_integration_test_skeleton_is_created
+ run_generator %w(iguchi/integration)
+ assert_file "test/integration/iguchi/integration_test.rb", /class Iguchi::IntegrationTest < ActionDispatch::IntegrationTest/
+ end
end