mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 11:36:05 +08:00
Fix specs.
This commit is contained in:
parent
b91cb92af0
commit
c392994793
|
@ -10,8 +10,15 @@ describe GlobalSetting do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'when slave config is present' do
|
describe 'when slave config is present' do
|
||||||
it "should set the right connector" do
|
before do
|
||||||
GlobalSetting.reset_redis_config!
|
GlobalSetting.reset_redis_config!
|
||||||
|
end
|
||||||
|
|
||||||
|
after do
|
||||||
|
GlobalSetting.reset_redis_config!
|
||||||
|
end
|
||||||
|
|
||||||
|
it "should set the right connector" do
|
||||||
GlobalSetting.expects(:redis_slave_port).returns(6379).at_least_once
|
GlobalSetting.expects(:redis_slave_port).returns(6379).at_least_once
|
||||||
GlobalSetting.expects(:redis_slave_host).returns('0.0.0.0').at_least_once
|
GlobalSetting.expects(:redis_slave_host).returns('0.0.0.0').at_least_once
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user