mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-22 22:06:40 +00:00
Update tests
This commit is contained in:
parent
6b2fe8f329
commit
afa47c6463
@ -4,7 +4,7 @@ module RabbitCarrots
|
||||
class Connection
|
||||
include ::Singleton
|
||||
attr_reader :connection
|
||||
|
||||
|
||||
def initialize
|
||||
@connection = Bunny.new(
|
||||
host: RabbitCarrots.configuration.rabbitmq_host,
|
||||
@ -16,11 +16,11 @@ module RabbitCarrots
|
||||
|
||||
@connection.start
|
||||
end
|
||||
|
||||
|
||||
def channel
|
||||
@channel ||= ConnectionPool.new do
|
||||
connection.create_channel
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -4,8 +4,4 @@ RSpec.describe RabbitCarrots do
|
||||
it "has a version number" do
|
||||
expect(RabbitCarrots::VERSION).not_to be nil
|
||||
end
|
||||
|
||||
it "does something useful" do
|
||||
expect(false).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user