- move Shiftback hack

This commit is contained in:
Jordan Sissel 2012-10-13 13:51:21 -07:00
parent 5969d5ca8e
commit bbe2f52502
2 changed files with 11 additions and 11 deletions

View file

@ -1,16 +1,5 @@
require "test_utils"
class Shiftback
def initialize(&block)
@block = block
end
def <<(event)
@block.call(event)
end
end # class Shiftback
describe "inputs/redis" do
extend LogStash::RSpec
require "redis"

View file

@ -99,3 +99,14 @@ module LogStash
end # def agent
end # module RSpec
end # module LogStash
class Shiftback
def initialize(&block)
@block = block
end
def <<(event)
@block.call(event)
end
end # class Shiftback