提交 6affdbee 编写于 作者: S Shota Iguchi

Add test for generate namespaced integration test

上级 56f09815
......@@ -3,10 +3,14 @@
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册