fix app_config spec as we broke out setup into its own method
This commit is contained in:
parent
523a960d94
commit
68f25c8d4e
1 changed files with 9 additions and 7 deletions
|
|
@ -88,15 +88,17 @@ describe AppConfig do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
describe '.setup!' do
|
||||||
it "calls normalize_pod_url" do
|
it "calls normalize_pod_url" do
|
||||||
AppConfig.should_receive(:normalize_pod_url).twice # apparently should_receive counts stuff in after blocks...WTF?
|
AppConfig.should_receive(:normalize_pod_url)
|
||||||
AppConfig.load!
|
AppConfig.setup!
|
||||||
end
|
end
|
||||||
it "calls normalize_admins" do
|
it "calls normalize_admins" do
|
||||||
AppConfig.should_receive(:normalize_admins).twice
|
AppConfig.should_receive(:normalize_admins)
|
||||||
AppConfig.load!
|
AppConfig.setup!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -182,7 +184,7 @@ describe AppConfig do
|
||||||
AppConfig[:pod_uri].host.should == "joindiaspora.com"
|
AppConfig[:pod_uri].host.should == "joindiaspora.com"
|
||||||
end
|
end
|
||||||
it "calls normalize_pod_url" do
|
it "calls normalize_pod_url" do
|
||||||
AppConfig.should_receive(:normalize_pod_url).twice
|
AppConfig.should_receive(:normalize_pod_url)
|
||||||
AppConfig[:pod_url] = "http://joindiaspora.com"
|
AppConfig[:pod_url] = "http://joindiaspora.com"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -193,7 +195,7 @@ describe AppConfig do
|
||||||
AppConfig[:pod_uri].host.should == "joindiaspora.com"
|
AppConfig[:pod_uri].host.should == "joindiaspora.com"
|
||||||
end
|
end
|
||||||
it "calls normalize_pod_url" do
|
it "calls normalize_pod_url" do
|
||||||
AppConfig.should_receive(:normalize_pod_url).twice
|
AppConfig.should_receive(:normalize_pod_url)
|
||||||
AppConfig['pod_url'] = "http://joindiaspora.com"
|
AppConfig['pod_url'] = "http://joindiaspora.com"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue