Class: FactoryBotRails::Generators::NonRSpecGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_bot_rails/generators/non_rspec_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(generators) ⇒ NonRSpecGenerator

Returns a new instance of NonRSpecGenerator.



4
5
6
# File 'lib/factory_bot_rails/generators/non_rspec_generator.rb', line 4

def initialize(generators)
  @generators = generators
end

Instance Method Details

#runObject



8
9
10
# File 'lib/factory_bot_rails/generators/non_rspec_generator.rb', line 8

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