Skip to content

Commit

Permalink
Change queue name and correct spec for user id specification
Browse files Browse the repository at this point in the history
  • Loading branch information
ymainier committed Mar 9, 2010
1 parent 7bd6fc5 commit d5c4382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/brm-ruby-logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions spec/brm-ruby-logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5c4382

Please sign in to comment.