mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
692 B
Ruby
18 lines
692 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "generators/generators_test_helper"
|
|
require "rails/generators/rails/integration_test/integration_test_generator"
|
|
|
|
class IntegrationTestGeneratorTest < Rails::Generators::TestCase
|
|
include GeneratorsTestHelper
|
|
|
|
def test_integration_test_skeleton_is_created
|
|
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
|