spec/onstomp/failover/pools/base_spec.rb in onstomp-1.0.8 vs spec/onstomp/failover/pools/base_spec.rb in onstomp-1.0.9
- old
+ new
@@ -10,13 +10,13 @@
end
}
describe ".initialize" do
it "should create a new Client for each URI" do
- OnStomp::Client.should_receive(:new).with('1').and_return('c 1')
- OnStomp::Client.should_receive(:new).with('2').and_return('c 2')
- OnStomp::Client.should_receive(:new).with('3').and_return('c 3')
- new_pool = Base.new ['1', '2', '3']
+ OnStomp::Client.should_receive(:new).with('1', { option: true }).and_return('c 1')
+ OnStomp::Client.should_receive(:new).with('2', { option: true }).and_return('c 2')
+ OnStomp::Client.should_receive(:new).with('3', { option: true }).and_return('c 3')
+ new_pool = Base.new ['1', '2', '3'], { option: true }
new_pool.clients.should =~ ['c 1', 'c 2', 'c 3']
end
end
describe ".shuffle!" do