Sha256: b0394193600caa61283988bc705c4e00f9a29574403e1bdf216432702baa93fd
Contents?: true
Size: 931 Bytes
Versions: 2
Compression:
Stored size: 931 Bytes
Contents
require 'refinerycms-core' require 'rspec-rails' require 'factory_bot' require 'rails-controller-testing' module Refinery autoload :TestingGenerator, 'generators/refinery/testing/testing_generator' module Testing class << self def root @root ||= Pathname.new(File.expand_path('../../../', __FILE__)) end # Load the factories of all currently loaded extensions def load_factories Refinery.extensions.each do |extension_const| if extension_const.respond_to?(:factory_paths) extension_const.send(:factory_paths).each do |path| FactoryBot.definition_file_paths << path end end end FactoryBot.find_definitions end end require 'refinery/testing/railtie' autoload :ControllerMacros, 'refinery/testing/controller_macros' autoload :FeatureMacros, 'refinery/testing/feature_macros' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-testing-4.0.3 | lib/refinery/testing.rb |
refinerycms-testing-4.0.2 | lib/refinery/testing.rb |