Sha256: 268661579b7a04c1ce913e969b031c9d7d391b15bc59d412e3c479d78815b9bd
Contents?: true
Size: 468 Bytes
Versions: 18
Compression:
Stored size: 468 Bytes
Contents
require 'spec_helper' describe Rubix::Sender do before do @config_file = Tempfile.new('sender', '/tmp') end it "has sensible defaults" do sender = Rubix::Sender.new(:host => 'foobar') sender.server.should == 'localhost' sender.port.should == 10051 sender.config.should == '/etc/zabbix/zabbix_agentd.conf' end it "will raise an error without a host" do lambda { Rubix::Sender.new }.should raise_error(Rubix::Error) end end
Version data entries
18 entries across 18 versions & 1 rubygems