Sha256: e932dd358a6672a6c7a797a1dba427e3301daf696753bd5d9c8e0ba2c80d6374

Contents?: true

Size: 614 Bytes

Versions: 40

Compression:

Stored size: 614 Bytes

Contents

require_relative '../lib/riemann/babbler'

include Riemann::Babbler::Options

describe 'Riemann Babbler Loader' do

  before(:each) do
    merge_config(File.expand_path('../my_config.yml', __FILE__))
    @plugins = Riemann::Babbler::PluginLoader.new.plugin_to_start
    @plugins = @plugins.map {|plugin| plugin.to_s}
  end

  it "load from file" do
    opts.riemann.host.should == 'host_from_yaml'
  end

  it "load parent plugins" do
    @plugins.should include('Riemann::Babbler::Plugin::Disk_1')
  end

  it "load parent from array" do
    @plugins.should include('Riemann::Babbler::Plugin::Cpu_1')
  end
  
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
riemann-babbler-2.8.5 test/default_spec.rb
riemann-babbler-2.8.4 test/default_spec.rb
riemann-babbler-2.8.3 test/default_spec.rb
riemann-babbler-2.8.2 test/default_spec.rb
riemann-babbler-2.8.1 test/default_spec.rb
riemann-babbler-2.8.0 test/default_spec.rb
riemann-babbler-2.6.0 test/default_spec.rb
riemann-babbler-2.5.9 test/default_spec.rb
riemann-babbler-2.5.8 test/default_spec.rb
riemann-babbler-2.5.7 test/default_spec.rb
riemann-babbler-2.5.6 test/default_spec.rb
riemann-babbler-2.5.5 test/default_spec.rb
riemann-babbler-2.5.4 test/default_spec.rb
riemann-babbler-2.5.3 test/default_spec.rb
riemann-babbler-2.5.2 test/default_spec.rb
riemann-babbler-2.5.1 test/default_spec.rb
riemann-babbler-2.5.0 test/default_spec.rb
riemann-babbler-2.1.5 test/default_spec.rb
riemann-babbler-2.1.4 test/default_spec.rb
riemann-babbler-2.1.3.2 test/default_spec.rb