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

Version Path
flydata-0.2.20 spec/fluent_plugins_spec_helper.rb
flydata-0.2.19 spec/fluent_plugins_spec_helper.rb
flydata-0.2.18 spec/fluent_plugins_spec_helper.rb
flydata-0.2.17 spec/fluent_plugins_spec_helper.rb
flydata-0.2.16 spec/fluent_plugins_spec_helper.rb
flydata-0.2.15 spec/fluent_plugins_spec_helper.rb
flydata-0.2.13 spec/fluent_plugins_spec_helper.rb
flydata-0.2.12 spec/fluent_plugins_spec_helper.rb
flydata-0.2.11 spec/fluent_plugins_spec_helper.rb
flydata-0.2.10 spec/fluent_plugins_spec_helper.rb
flydata-0.2.9 spec/fluent_plugins_spec_helper.rb
flydata-0.2.8 spec/fluent_plugins_spec_helper.rb
flydata-0.2.7 spec/fluent_plugins_spec_helper.rb
flydata-0.2.6 spec/fluent_plugins_spec_helper.rb
flydata-0.2.5 spec/fluent_plugins_spec_helper.rb
flydata-0.2.4 spec/fluent_plugins_spec_helper.rb
flydata-0.2.3 spec/fluent_plugins_spec_helper.rb
flydata-0.2.2 spec/fluent_plugins_spec_helper.rb
flydata-0.2.1 spec/fluent_plugins_spec_helper.rb
flydata-0.2.0 spec/fluent_plugins_spec_helper.rb