spec/connection_spec.rb in stomper-0.4 vs spec/connection_spec.rb in stomper-1.0.0
- old
+ new
@@ -1,12 +1,22 @@
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
require File.expand_path(File.join(File.dirname(__FILE__), 'shared_connection_examples'))
module Stomper
describe Connection do
- before(:each) do
- @connection = Connection.new("stomp:///", :connect_now => false)
+ describe "standard connection" do
+ before(:each) do
+ @connection = Connection.new("stomp:///")
+ end
+
+ it_should_behave_like "All Client Connections"
end
- it_should_behave_like "All Client Connections"
+ describe "ssl connection" do
+ before(:each) do
+ @connection = Connection.new("stomp+ssl:///")
+ end
+
+ it_should_behave_like "All Client Connections"
+ end
end
end