fix whitespaces, cause really, why not?

This commit is contained in:
2011-01-27 10:20:13 +00:00
parent f35303b8b2
commit 079bb5388c
5 changed files with 12 additions and 11 deletions

View File

@@ -43,4 +43,3 @@ module AMQP
end # BasicClient
end # Failover
end # AMQP

View File

@@ -3,29 +3,29 @@
module AMQP
module Failover
class Logger
attr_accessor :enabled
def initialize(enabled = nil)
@enabled = enabled || true
end
def error(*msg)
msg[0] = "[ERROR]: " + msg[0] if msg[0].is_a?(String)
write(*msg)
end
def info(*msg)
write(*msg)
end
private
def write(*msg)
return if !@enabled
puts *msg
end
end # Logger
end # Failover
end # AMQP

View File

@@ -9,7 +9,7 @@ describe "Simple AMQP connection with FailoverClient" do
before(:all) do
@log = SpecServer.log
end
it "should be connected" do
AMQP.client = AMQP::FailoverClient
EM.run {
@@ -27,4 +27,4 @@ describe "Simple AMQP connection with FailoverClient" do
}
end
end
end

View File

@@ -1,3 +1,5 @@
# encoding: utf-8
# add project-relative load paths
$LOAD_PATH.unshift File.dirname(__FILE__)
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

View File

@@ -15,4 +15,4 @@ module SpecServer
# silence Output
end
end
end