Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change queue name and correct spec for user id specification

  • Loading branch information...
commit d5c4382170e7cd5657d3cb00ff70e22374c28e79 1 parent 7bd6fc5
Yann Mainier ymainier authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  lib/brm-ruby-logger.rb
  2. +4 −4 spec/brm-ruby-logger_spec.rb
2  lib/brm-ruby-logger.rb
View
@@ -24,7 +24,7 @@ def initialize(application, *args)
bunny_options = args.extract_options!
@connection = Bunny.new bunny_options
@connection.start
- @queue = @connection.queue "/"
+ @queue = @connection.queue "reactor.#{application}"
end
def disconnect()
8 spec/brm-ruby-logger_spec.rb
View
@@ -14,16 +14,16 @@
describe "BrmLogger" do
before(:each) do
- user_id = "123"
- application = "brm-ruby-logger-tests"
- @logger = BrmLogger::Logger.new(user_id, application,
- # :logging => true,
+ application = "mambanation-dev"
+ @logger = BrmLogger::Logger.new(application,
+ :logging => true,
:host => RABBITMQ_HOST,
:port => RABBITMQ_PORT,
:user => RABBITMQ_USERNAME,
:pass => RABBITMQ_PASSWORD,
:vhost => RABBITMQ_VHOST
)
+ @logger.user_id = "123"
end
after(:each) do
Please sign in to comment.
Something went wrong with that request. Please try again.