Sha256: bd029af15c31c3fe6083bb52add1501a2708aca75eaa9cabfa35d2ab4beb78a7

Contents?: true

Size: 576 Bytes

Versions: 10

Compression:

Stored size: 576 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
  end
rescue LoadError
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rspeckled-0.0.44 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.43 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.42 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.41 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.40 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.39 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.38 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.37 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.36 lib/rspeckled/plugins/factory_bot.rb
rspeckled-0.0.35 lib/rspeckled/plugins/factory_bot.rb