Sha256: 7b1911646dba5bb5170ac30e0dc59724f7c492c72acadb056dc59f084c5d3aa2
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
ENV["RAILS_ENV"] ||= "test" require "rspec/core" unless defined? RSpec.configure require "spec_helper" require File.expand_path("../dummy/config/environment", __FILE__) require "rspec/rails" FactoryBot.definition_file_paths = [File.expand_path("../factories", __FILE__)] FactoryBot.find_definitions ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), "../") Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].sort.each { |f| require f } ActiveRecord::Migration.maintain_test_schema! RSpec.configure do |config| config.mock_with :rspec config.order = "random" config.use_transactional_fixtures = true config.infer_spec_type_from_file_location! config.include FactoryBot::Syntax::Methods end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm_preferences-1.6.0 | spec/spec_helper.rb |