fully reset app_config spec to prevent test polution
This commit is contained in:
parent
f44cb8fe2e
commit
258d55df51
1 changed files with 5 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ describe AppConfig do
|
||||||
|
|
||||||
after do
|
after do
|
||||||
AppConfig.reload!
|
AppConfig.reload!
|
||||||
|
AppConfig.setup!
|
||||||
end
|
end
|
||||||
|
|
||||||
describe ".load!" do
|
describe ".load!" do
|
||||||
|
|
@ -93,11 +94,11 @@ describe AppConfig do
|
||||||
|
|
||||||
describe '.setup!' do
|
describe '.setup!' do
|
||||||
it "calls normalize_pod_url" do
|
it "calls normalize_pod_url" do
|
||||||
AppConfig.should_receive(:normalize_pod_url)
|
AppConfig.should_receive(:normalize_pod_url).twice
|
||||||
AppConfig.setup!
|
AppConfig.setup!
|
||||||
end
|
end
|
||||||
it "calls normalize_admins" do
|
it "calls normalize_admins" do
|
||||||
AppConfig.should_receive(:normalize_admins)
|
AppConfig.should_receive(:normalize_admins).twice
|
||||||
AppConfig.setup!
|
AppConfig.setup!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -200,7 +201,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)
|
AppConfig.should_receive(:normalize_pod_url).twice
|
||||||
AppConfig[:pod_url] = "http://joindiaspora.com"
|
AppConfig[:pod_url] = "http://joindiaspora.com"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -211,7 +212,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)
|
AppConfig.should_receive(:normalize_pod_url).twice
|
||||||
AppConfig['pod_url'] = "http://joindiaspora.com"
|
AppConfig['pod_url'] = "http://joindiaspora.com"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue