spec/spec_helper.rb in jsparrow-1.1.2 vs spec/spec_helper.rb in jsparrow-1.1.3
- old
+ new
@@ -7,23 +7,23 @@
# Modulo com metodos uteis para as specs.
#
module JSparrowHelperMethods
def configure_connection
- JSparrow::Connection.configure do |connection|
- connection.use_jms_client_jar '/opt/openjms/lib/openjms-0.7.7-beta-1.jar'
+ JSparrow::Connection.configure do
+ use_jms_client_jar '/opt/openjms/lib/openjms-0.7.7-beta-1.jar'
- connection.use_jndi_properties :initial_context_factory => 'org.exolab.jms.jndi.InitialContextFactory',
- :provider_url => 'tcp://localhost:3035'
- # :security_principal => 'user',
- # :security_credentials => 'password'
+ use_jndi_properties :initial_context_factory => 'org.exolab.jms.jndi.InitialContextFactory',
+ :provider_url => 'tcp://localhost:3035'
+ # :security_principal => 'user',
+ # :security_credentials => 'password'
- connection.enable_connection_factories :queue_connection_factory => 'ConnectionFactory',
- :topic_connection_factory => 'ConnectionFactory'
+ enable_connection_factories :queue_connection_factory => 'ConnectionFactory',
+ :topic_connection_factory => 'ConnectionFactory'
- connection.enable_queues :test_queue => 'TestQueue'
+ enable_queues :test_queue => 'TestQueue'
- connection.enable_topics :test_topic => 'TestTopic'
+ enable_topics :test_topic => 'TestTopic'
end
end
def create_jms_client
configure_connection