Sha256: ed5ec9de17056d411c36e4935dbaac5a0791fcd8d89bd0ba1eb07e01254420cb
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
require 'active_record' require 'arpa' require 'database_cleaner' require 'factory_bot' require 'support/repositories/test_repository' require 'i18n' ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: "#{File.dirname(__FILE__)}/arpa.sqlite3") load File.dirname(__FILE__) + '/support/schema.rb' I18n.config.enforce_available_locales = true I18n.load_path << File.expand_path('../lib/config/locales/arpa.en.yml', __dir__) I18n.reload! RSpec.configure do |config| config.include FactoryBot::Syntax::Methods FactoryBot.find_definitions config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around(:each) do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arpa-0.3.0 | spec/spec_helper.rb |