use minimal app_config for tests
This commit is contained in:
parent
0ed867b991
commit
ed439d0b08
3 changed files with 38 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
|||
class FoodsoftConfig
|
||||
mattr_accessor :scope, :config
|
||||
APP_CONFIG = YAML.load(File.read(File.join(Rails.root, "/config/app_config.yml")))
|
||||
APP_CONFIG_FILE = ENV['FOODSOFT_APP_CONFIG'] || 'config/app_config.yml'
|
||||
# Rails.logger isn't ready yet - and we don't want to litter rspec invocation with this msg
|
||||
puts "-> Loading app configuration from #{APP_CONFIG_FILE}" unless defined? RSpec
|
||||
APP_CONFIG = YAML.load(File.read(File.expand_path(APP_CONFIG_FILE, Rails.root)))
|
||||
|
||||
class << self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue