Fix app_config spec

This commit is contained in:
Raphael Sofaer 2011-06-29 12:44:01 -07:00
parent 6519ffcd33
commit 7ee3fcd811

View file

@ -47,7 +47,7 @@ describe AppConfig do
end
after do
File.instance_eval { alias :exists? :obfuscated_by_rspec_mocks__exists? } # unmock exists? so that the AppConfig.reload! in the top-level after block can run
AppConfig.source(AppConfig.source_file)
AppConfig.source(AppConfig.source_file_name)
end
context "and there are no old-style config files around" do
it "prints an error message with instructions for setting up application.yml and exits" do