2016-08-06 13:16:09 -04:00
|
|
|
require "generators/generators_test_helper"
|
|
|
|
require "rails/generators/rails/integration_test/integration_test_generator"
|
2009-06-26 03:11:37 -04:00
|
|
|
|
2010-01-18 18:07:11 -05:00
|
|
|
class IntegrationTestGeneratorTest < Rails::Generators::TestCase
|
|
|
|
include GeneratorsTestHelper
|
2009-06-26 03:11:37 -04:00
|
|
|
|
|
|
|
def test_integration_test_skeleton_is_created
|
2017-02-16 02:47:43 -05:00
|
|
|
run_generator %w(integration)
|
2010-05-29 16:29:14 -04:00
|
|
|
assert_file "test/integration/integration_test.rb", /class IntegrationTest < ActionDispatch::IntegrationTest/
|
2009-06-26 03:11:37 -04:00
|
|
|
end
|
2017-02-16 02:47:43 -05:00
|
|
|
|
|
|
|
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
|
2009-06-26 03:11:37 -04:00
|
|
|
end
|