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.1.3.1 test/default_spec.rb
riemann-babbler-2.1.3 test/default_spec.rb
riemann-babbler-2.1.2 test/default_spec.rb
riemann-babbler-2.1.1 test/default_spec.rb
riemann-babbler-2.1.0 test/default_spec.rb
riemann-babbler-2.0.9 test/default_spec.rb
riemann-babbler-2.0.8 test/default_spec.rb
riemann-babbler-2.0.7 test/default_spec.rb
riemann-babbler-2.0.6.1 test/default_spec.rb
riemann-babbler-2.0.6 test/default_spec.rb
riemann-babbler-2.0.5 test/default_spec.rb
riemann-babbler-2.0.4 test/default_spec.rb
riemann-babbler-2.0.3.2 test/default_spec.rb
riemann-babbler-2.0.3.1 test/default_spec.rb
riemann-babbler-2.0.3 test/default_spec.rb
riemann-babbler-2.0.2 test/default_spec.rb
riemann-babbler-2.0.1 test/default_spec.rb
riemann-babbler-2.0.0 test/default_spec.rb
riemann-babbler-2.0.0pre15 test/default_spec.rb
riemann-babbler-2.0.0pre13 test/default_spec.rb