Module: Spree::TestingSupport

Defined in:
core/lib/spree/testing_support.rb

Instance Method Summary collapse

Instance Method Details

#check_factory_bot_versionObject



16
17
18
# File 'core/lib/spree/testing_support.rb', line 16

def check_factory_bot_version
  Spree::TestingSupport::FactoryBot.check_version
end

#factory_bot_pathsObject



12
13
14
# File 'core/lib/spree/testing_support.rb', line 12

def factory_bot_paths
  Spree::TestingSupport::FactoryBot.definition_file_paths
end

#load_all_factoriesObject



20
21
22
# File 'core/lib/spree/testing_support.rb', line 20

def load_all_factories
  Spree::TestingSupport::FactoryBot.add_paths_and_load!
end