Sha256: 690850894b0a4c4d957eb79cafd322674ae56dd686e8d48c3cd7b531c8d53cfa

Contents?: true

Size: 436 Bytes

Versions: 10

Compression:

Stored size: 436 Bytes

Contents

module FactoryBotRails
  module Generators
    class NonRSpecGenerator
      def initialize(generators)
        @generators = generators
      end

      def run
        @generators.test_framework(
          test_framework,
          fixture: false,
          fixture_replacement: :factory_bot
        )
      end

      private

      def test_framework
        @generators.options[:rails][:test_framework]
      end
    end
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/factory_bot_rails-6.4.4/lib/factory_bot_rails/generators/non_rspec_generator.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/factory_bot_rails-6.4.4/lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.4.4 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.4.3 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.4.2 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.4.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.3.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.2.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.1.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-6.0.0 lib/factory_bot_rails/generators/non_rspec_generator.rb