Sha256: 6f4b515f15f18ac592c39fb19ff2d2cf448d3c7f09ebb9050ac3506534da2762
Contents?: true
Size: 801 Bytes
Versions: 4
Compression:
Stored size: 801 Bytes
Contents
# frozen_string_literal: true ############################################################################## # Factory Bot Plugin ############################################################################## begin require 'factory_bot' FactoryBot.definition_file_paths << './spec/factories' if FactoryBot.configuration.factories.count.zero? && Rails.application.class.name.match(/Dummy/) FactoryBot.find_definitions end RSpec.configure do |config| config.include FactoryBot::Syntax::Methods config.before(:suite) do FactoryBot.reload load 'rspeckled/factories/sequences.rb' end config.before(:each) do FactoryBot.rewind_sequences if FactoryBot.respond_to?(:rewind_sequences) end end rescue LoadError end
Version data entries
4 entries across 4 versions & 1 rubygems