mirror of
https://github.com/jimeh/amqp-failover.git
synced 2026-02-19 10:56:44 +00:00
updated load paths and structure of specs a bit
This commit is contained in:
18
spec/server_helper.rb
Normal file
18
spec/server_helper.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# encoding: utf-8
|
||||
|
||||
module ServerHelper
|
||||
include AMQP::Server
|
||||
|
||||
class << self
|
||||
def log
|
||||
@log ||= []
|
||||
end
|
||||
attr_writer :log
|
||||
end
|
||||
|
||||
def log(*args)
|
||||
SpecServer.log << args
|
||||
# silence Output
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user