|
|
|
@@ -19,7 +19,7 @@ ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
|
|
|
|
# in spec/support/ and its subdirectories.
|
|
|
|
|
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
|
|
|
|
Dir[File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")].each {|f| require f }
|
|
|
|
|
#FactoryGirl.definition_file_paths = [File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")] # not needed here
|
|
|
|
|
#FactoryBot.definition_file_paths = [File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")] # not needed here
|
|
|
|
|
Dir.glob("spec/acceptance/steps/**/*steps.rb") { |f| load f, true }
|
|
|
|
|
|
|
|
|
|
# Add additional requires below this line. Rails is not loaded until this point!
|
|
|
|
@@ -53,7 +53,7 @@ RSpec.configure do |config|
|
|
|
|
|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
|
|
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
|
|
|
config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
|
|
|
|
|
config.include FactoryGirl::Syntax::Methods
|
|
|
|
|
config.include FactoryBot::Syntax::Methods
|
|
|
|
|
config.include Rspec::Dunlop::GeneralHelpers
|
|
|
|
|
config.include Rspec::Dunlop::FeatureHelpers, type: :feature
|
|
|
|
|
config.include Devise::Test::ControllerHelpers, type: :controller
|
|
|
|
@@ -64,7 +64,7 @@ RSpec.configure do |config|
|
|
|
|
|
# instead of true.
|
|
|
|
|
config.use_transactional_fixtures = false
|
|
|
|
|
config.before :suite do
|
|
|
|
|
#FactoryGirl.reload # to add the adapter factories
|
|
|
|
|
#FactoryBot.reload # to add the adapter factories
|
|
|
|
|
#DatabaseCleaner.clean_with(:truncation)
|
|
|
|
|
DatabaseCleaner.clean_with(:truncation)
|
|
|
|
|
Dunlop::NestedLogger.options[:yaml_options][:line_width] = 2000
|
|
|
|
|