Sha256: 9be79e3589efa8ffa6beecc076bd0eb9b5c51179d19c2d449bc3db74a11ac1e2
Contents?: true
Size: 848 Bytes
Versions: 4
Compression:
Stored size: 848 Bytes
Contents
# This is loaded once before the first command is executed begin require 'database_cleaner-active_record' rescue LoadError => e puts e.message begin require 'database_cleaner' rescue LoadError => e puts e.message end end begin require 'factory_bot_rails' rescue LoadError => e puts e.message begin require 'factory_girl_rails' rescue LoadError => e puts e.message end end require 'cypress_on_rails/smart_factory_wrapper' factory = CypressOnRails::SimpleRailsFactory factory = FactoryBot if defined?(FactoryBot) factory = FactoryGirl if defined?(FactoryGirl) CypressOnRails::SmartFactoryWrapper.configure( always_reload: !Rails.configuration.cache_classes, factory: factory, files: [ Rails.root.join('spec', 'factories.rb'), Rails.root.join('spec', 'factories', '**', '*.rb') ] )
Version data entries
4 entries across 4 versions & 1 rubygems