From 9dbe644b2521ce7e58570007ccb18b04983aaaec Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 13 Jan 2012 15:03:44 -0800 Subject: [PATCH] fix app_config spec --- spec/models/app_config_spec.rb | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/spec/models/app_config_spec.rb b/spec/models/app_config_spec.rb index 69140746e..7ba7180ba 100644 --- a/spec/models/app_config_spec.rb +++ b/spec/models/app_config_spec.rb @@ -144,28 +144,6 @@ describe AppConfig do end end - context 'configurations which are arrays' do - - it 'should be set to be admins or community_spotlight' do - AppConfig::ARRAY_VARS.should =~ [:community_spotlight, :admins] - end - - context 'on heroku' do - before do - ENV['admins'] = "maxwell#{EnviromentConfiguration::ARRAY_SEPERATOR}daniel" - EnviromentConfiguration.stub(:heroku?).and_return(true) - end - - after do - EnviromentConfiguration.stub(:heroku?).and_return(false) - end - - it 'converts a string with ARRAY_SEPERATOR to an array' do - AppConfig[:admins].should be_a Array - end - end - end - describe ".pod_uri" do it "properly parses the pod_url" do AppConfig.pod_uri = nil