Update tests

This commit is contained in:
ari 2022-12-04 14:36:40 +03:00
parent 6b2fe8f329
commit afa47c6463
No known key found for this signature in database
GPG Key ID: 1A5559E2E32F1805
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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