Sha256: dbd4d7b4563a8d129a774a14d85a4f9d7ca325465385ef7a3340940dd8803543

Contents?: true

Size: 624 Bytes

Versions: 108

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib', 'flydata', 'fluent-plugins'))
$log = nil

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

108 entries across 108 versions & 1 rubygems

Version Path
flydata-0.8.10.2 spec/fluent_plugins_spec_helper.rb
flydata-0.8.10.1 spec/fluent_plugins_spec_helper.rb
flydata-0.8.9.11 spec/fluent_plugins_spec_helper.rb
flydata-0.8.10 spec/fluent_plugins_spec_helper.rb
flydata-0.8.9 spec/fluent_plugins_spec_helper.rb
flydata-0.8.8 spec/fluent_plugins_spec_helper.rb
flydata-0.8.7 spec/fluent_plugins_spec_helper.rb
flydata-0.8.6 spec/fluent_plugins_spec_helper.rb
flydata-0.8.5 spec/fluent_plugins_spec_helper.rb
flydata-0.8.4 spec/fluent_plugins_spec_helper.rb
flydata-0.8.3 spec/fluent_plugins_spec_helper.rb
flydata-0.8.2 spec/fluent_plugins_spec_helper.rb
flydata-0.8.1 spec/fluent_plugins_spec_helper.rb
flydata-0.8.0 spec/fluent_plugins_spec_helper.rb
flydata-0.7.19 spec/fluent_plugins_spec_helper.rb
flydata-0.7.18 spec/fluent_plugins_spec_helper.rb
flydata-0.7.17 spec/fluent_plugins_spec_helper.rb
flydata-0.7.16 spec/fluent_plugins_spec_helper.rb
flydata-0.7.15 spec/fluent_plugins_spec_helper.rb
flydata-0.7.14 spec/fluent_plugins_spec_helper.rb