spec/lib/plugins_spec.rb in zabbix-ruby-client-0.0.17 vs spec/lib/plugins_spec.rb in zabbix-ruby-client-0.0.18
- old
+ new
@@ -16,10 +16,12 @@
after :each do
ZabbixRubyClient::Plugins.reset
end
it "loading dirs works" do
- result = {"sample" => File.join(@plugindir, "sample.rb") }
+ result = { "sample" => File.join(@plugindir, "sample.rb"),
+ "sample_discover" => File.join(@plugindir, "sample_discover.rb"),
+ "sample_buggy" => File.join(@plugindir, "sample_buggy.rb")}
expect(ZabbixRubyClient::Plugins.instance_variable_get(:@available)).to eq result
end
it "registering a new plugin loads it" do
ZabbixRubyClient::Plugins.register("sample",Object)