Sha256: 673475c2eeadfe585e0644c71d12edb1a32c730dd1a58c151c6cbf3447aa8b99

Contents?: true

Size: 480 Bytes

Versions: 136

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/test_unit"

module TestUnit # :nodoc:
  module Generators # :nodoc:
    class IntegrationGenerator < Base # :nodoc:
      check_class_collision suffix: "Test"

      def create_test_files
        template "integration_test.rb", File.join("test/integration", class_path, "#{file_name}_test.rb")
      end

      private
        def file_name
          @_file_name ||= super.sub(/_test\z/i, "")
        end
    end
  end
end

Version data entries

136 entries across 131 versions & 9 rubygems

Version Path
omg-railties-8.0.0.alpha9 lib/rails/generators/test_unit/integration/integration_generator.rb
omg-railties-8.0.0.alpha8 lib/rails/generators/test_unit/integration/integration_generator.rb
omg-railties-8.0.0.alpha7 lib/rails/generators/test_unit/integration/integration_generator.rb
omg-railties-8.0.0.alpha4 lib/rails/generators/test_unit/integration/integration_generator.rb
omg-railties-8.0.0.alpha3 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.1.4 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.2.1 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.2.0 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.2.0.rc1 lib/rails/generators/test_unit/integration/integration_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/generators/test_unit/integration/integration_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.2.0.beta3 lib/rails/generators/test_unit/integration/integration_generator.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/test_unit/integration/integration_generator.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/test_unit/integration/integration_generator.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/generators/test_unit/integration/integration_generator.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.2.0.beta2 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.1.3.4 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-7.0.8.4 lib/rails/generators/test_unit/integration/integration_generator.rb
railties-6.1.7.8 lib/rails/generators/test_unit/integration/integration_generator.rb