Class: DerailSpecs::FactoryBot

Inherits:
Object
  • Object
show all
Defined in:
lib/derail_specs/factory_bot_stub.rb

Class Method Summary collapse

Class Method Details

.create(*_) ⇒ Object



3
4
5
# File 'lib/derail_specs/factory_bot_stub.rb', line 3

def self.create(*_)
  not_installed_message
end

.create_list(*_) ⇒ Object



7
8
9
# File 'lib/derail_specs/factory_bot_stub.rb', line 7

def self.create_list(*_)
  not_installed_message
end

.not_installed_messageObject



11
12
13
14
# File 'lib/derail_specs/factory_bot_stub.rb', line 11

def self.not_installed_message
  puts "factory_bot_rails is not installed in group :test"
  puts "Please add factory_bot_rails to your Gemfile to use this feature"
end