Sha256: 1d0a2bc551839f62204f4f55b7e25aee0c556228a7381f536d7f2673b3b4b666

Contents?: true

Size: 284 Bytes

Versions: 26

Compression:

Stored size: 284 Bytes

Contents

require 'factory_bot'

FactoryBot.find_definitions

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

# enable factories decorators
Dir[Rails.root.join('spec/factories/spree/**/*.rb')].sort.each do |factory|
  require factory if factory =~ /decorator/
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_dev_tools-0.2.4 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.2.3 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.2.2 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.2.1 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.2.0 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.12 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.11 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.10 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.9 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.8 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.7 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.5 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.4 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.3 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.2 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.1 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.1.0 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.9 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.8 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.7 lib/spree_dev_tools/rspec/support/factory_bot.rb