Sha256: 163ba6b00bf3c78bdfc3a94d412e68b4e55010f0b22de1cf40c844285b775bd7

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 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

5 entries across 5 versions & 1 rubygems

Version Path
factory_bot_rails-4.11.1 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-4.11.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-4.10.0 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-4.8.2 lib/factory_bot_rails/generators/non_rspec_generator.rb
factory_bot_rails-1.0.0.alpha lib/factory_bot_rails/generators/non_rspec_generator.rb