carnetdejeu-crystal/spec/spec_helper.cr

17 lines
313 B
Crystal
Raw Normal View History

2018-09-03 21:08:32 +00:00
ENV["AMBER_ENV"] ||= "test"
require "spec"
require "micrate"
require "garnet_spec"
require "../config/*"
Micrate::DB.connection_url = Amber.settings.database_url
# Automatically run migrations on the test database
Micrate::Cli.run_up
# Disable Granite logs in tests
Granite.settings.logger = Logger.new nil