module Lopata::FactoryBot::Methods
To be included in Lopata::Scenario
Public Instance Methods
create(*params)
click to toggle source
Wrapper for FactoryBot#create Calls the FactoryBot#create with given paramters and returns it result. Additionally store the created object for destroying at the end of scenario. @see Lopata::ActiveRecord::Methods#cleanup
# File lib/lopata/factory_bot.rb, line 58 def create(*params) cleanup_later ::FactoryBot.create(*params) end