Sha256: fd0e5b1d32b470a7925bc930945250729c1f0ee497f11848a35a12ec64f077f8

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

::FactoryBot.definition_file_paths << './spec/factories'

if ::FactoryBot.factories.count == 0 &&
   ::Rails.application.class.name.include?('Dummy')

  ::FactoryBot.find_definitions
end

RSpec.configure do |config|
  config.include ::FactoryBot::Syntax::Methods
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/configuration/factory_bot.rb
rspeckled-2.1.0 lib/rspeckled/plugins/configuration/factory_bot.rb