load oauth_keys.yml.example as default so I don't have to touch my oauth_keys.yml to have the specs pass on my machine

This commit is contained in:
Jonne Hass 2011-09-11 23:45:14 +02:00
parent 586746868c
commit 41effa7bd2

View file

@ -11,9 +11,8 @@ oauth_keys_file = "#{Rails.root}/config/oauth_keys.yml"
SERVICES = nil SERVICES = nil
silence_warnings do silence_warnings do
SERVICES = load_config_yaml("#{oauth_keys_file}.example")
if File.exist? oauth_keys_file if File.exist? oauth_keys_file
SERVICES = load_config_yaml(oauth_keys_file) SERVICES.deep_merge(load_config_yaml(oauth_keys_file))
else
SERVICES = load_config_yaml("#{oauth_keys_file}.example")
end end
end end