Sha256: df12837a20e7775da14b5a171b73a351c1d65acb70028180adb0f27414d20da2

Contents?: true

Size: 581 Bytes

Versions: 14

Compression:

Stored size: 581 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

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-0.0.30 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.29 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.28 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.27 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.26 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.25 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.24 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.23 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.22 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.21 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.20 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.19 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.18 lib/rspeckled/plugins/factory_girl.rb
rspeckled-0.0.17 lib/rspeckled/plugins/factory_girl.rb