Always run tests using example.application.yml

This fixes an Oauth integration test failure when a
custom application.yml is present.
This commit is contained in:
John Firebaugh 2013-07-31 16:19:01 -07:00 committed by Tom Hughes
parent 5508a3857f
commit c4edac9fd8

View file

@ -1,7 +1,7 @@
require 'yaml'
config = YAML.load_file(File.expand_path("../application.yml", __FILE__))
env = ENV['RAILS_ENV'] || 'development'
config = YAML.load_file(File.expand_path(env == "test" ? "../example.application.yml" : "../application.yml", __FILE__))
ENV.each do |key,value|
if key.match(/^OSM_(.*)$/)