Sha256: 72d3df72900652289051da5955ccef655822816833b3bbe0ddce2ec38c509280

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

##############################################################################
#                             Factory Girl Plugin
##############################################################################

begin
  require 'factory_girl'

  FactoryGirl.definition_file_paths << './spec/factories'

  if FactoryGirl.configuration.factories.count.zero? &&
     Rails.application.class.name.match(/Dummy/)

    FactoryGirl.find_definitions
  end

  RSpec.configure do |config|
    config.include FactoryGirl::Syntax::Methods
  end
rescue LoadError
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspeckled-0.0.34 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.33 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.32 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.31 lib/rspeckled/plugins/factory_girl.rb