blob: 3947b74205c177e21f71b34dc53068ae1fa96e18 (
plain) (
tree)
|
|
# frozen_string_literal: true
require_relative "../../test_unit"
module TestUnit # :nodoc:
module Generators # :nodoc:
class ControllerGenerator < Base # :nodoc:
argument :actions, type: :array, default: [], banner: "action action"
check_class_collision suffix: "ControllerTest"
def create_test_files
template "functional_test.rb",
File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
end
end
end
end
|