module Fluent::Test
Public Class Methods
setup()
click to toggle source
Calls superclass method
# File lib/fluent/test/base.rb, line 19 def self.setup Fluent.__send__(:remove_const, :Engine) engine = Fluent.const_set(:Engine, EngineClass.new).init engine.define_singleton_method(:now=) {|n| @now = n.to_i } engine.define_singleton_method(:now) { @now || super() } nil end