Sha256: fe292802316a3ab6b2011178bef0c110cbed1c4cc664e1bb6a95297a8cfe2169
Contents?: true
Size: 606 Bytes
Versions: 34
Compression:
Stored size: 606 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib', 'flydata', 'fluent-plugins')) require 'rspec' require 'fluent/test' module Fluent module Test def self.configure_plugin(plugin, str) plugin = plugin.new if plugin.kind_of?(Class) if str.is_a?(Fluent::Config::Element) plugin.instance_variable_set(:@config, str) else plugin.instance_variable_set(:@config, Config.parse(str, "(test)")) end plugin.configure(plugin.instance_variable_get(:@config)) self end end end
Version data entries
34 entries across 34 versions & 1 rubygems