mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
19 lines
616 B
Ruby
19 lines
616 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "generators/generators_test_helper"
|
|
require "rails/generators/rails/system_test/system_test_generator"
|
|
|
|
class SystemTestGeneratorTest < Rails::Generators::TestCase
|
|
include GeneratorsTestHelper
|
|
arguments %w(user)
|
|
|
|
def test_system_test_skeleton_is_created
|
|
run_generator
|
|
assert_file "test/system/users_test.rb", /class UsersTest < ApplicationSystemTestCase/
|
|
end
|
|
|
|
def test_namespaced_system_test_skeleton_is_created
|
|
run_generator %w(admin/user)
|
|
assert_file "test/system/admin/users_test.rb", /class Admin::UsersTest < ApplicationSystemTestCase/
|
|
end
|
|
end
|