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.0.6 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.5 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.4 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.3 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.2 lib/spree_dev_tools/rspec/support/factory_bot.rb
spree_dev_tools-0.0.1 lib/spree_dev_tools/rspec/support/factory_bot.rb