mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
make existing YAML dependency explicit
(the ActiveRecord tests always have YAML loaded already, but what about when you're not running the ActiveRecord tests?)
This commit is contained in:
parent
9be69424dc
commit
307f1ca4ce
1 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
require 'yaml'
|
||||||
|
|
||||||
def db_config
|
def db_config
|
||||||
config_path = 'db/config.yml'
|
config_path = 'db/config.yml'
|
||||||
@db_config ||= YAML.load(IO.read(config_path))
|
@db_config ||= YAML.load(IO.read(config_path))
|
||||||
|
|
Loading…
Reference in a new issue