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
|
class Connection
|
||||||
include ::Singleton
|
include ::Singleton
|
||||||
attr_reader :connection
|
attr_reader :connection
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@connection = Bunny.new(
|
@connection = Bunny.new(
|
||||||
host: RabbitCarrots.configuration.rabbitmq_host,
|
host: RabbitCarrots.configuration.rabbitmq_host,
|
||||||
@ -16,11 +16,11 @@ module RabbitCarrots
|
|||||||
|
|
||||||
@connection.start
|
@connection.start
|
||||||
end
|
end
|
||||||
|
|
||||||
def channel
|
def channel
|
||||||
@channel ||= ConnectionPool.new do
|
@channel ||= ConnectionPool.new do
|
||||||
connection.create_channel
|
connection.create_channel
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -4,8 +4,4 @@ RSpec.describe RabbitCarrots do
|
|||||||
it "has a version number" do
|
it "has a version number" do
|
||||||
expect(RabbitCarrots::VERSION).not_to be nil
|
expect(RabbitCarrots::VERSION).not_to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does something useful" do
|
|
||||||
expect(false).to eq(true)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user