diff --git a/spec/client_spec.rb b/spec/client_spec.rb index b310b04..87f04c6 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -136,13 +136,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => 'testlogin', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => 'testlogin', :passcode => 'testpassword', :host => 'localhost', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('testlogin', 'testpassword', 'localhost', '12345', false) end @@ -157,13 +157,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => '', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => '', :passcode => '', :host => 'foobar', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://foobar:12345') end @@ -179,13 +179,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => '', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => '', :passcode => '', :host => 'foo-bar', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://foo-bar:12345') end @@ -201,13 +201,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => 'test-login', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => 'test-login', :passcode => 'testpasscode', :host => 'foobar', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://test-login:testpasscode@foobar:12345') end @@ -223,13 +223,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => 'test-login', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => 'test-login', :passcode => 'testpasscode', :host => 'foo-bar', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://test-login:testpasscode@foo-bar:12345') end @@ -248,13 +248,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => '', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => '', :passcode => '', :host => 'host.foobar.com', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://host.foobar.com:12345') end @@ -270,13 +270,13 @@ end it "should properly parse the URL provided" do - expect(Stomp::Connection).to receive(:new).with(:hosts => [{:login => 'testlogin', + expect(Stomp::Connection).to receive(:new).with({:hosts => [{:login => 'testlogin', :passcode => 'testpasscode', :host => 'host.foobar.com', :port => 12345}], :logger => null_logger, :reliable => false, - :client_main => @cli_thread) + :client_main => @cli_thread}) Stomp::Client.new('stomp://testlogin:testpasscode@host.foobar.com:12345') end