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

Version Path
rubix-0.5.14 spec/rubix/sender_spec.rb
rubix-0.5.13 spec/rubix/sender_spec.rb
rubix-0.5.9 spec/rubix/sender_spec.rb
rubix-0.5.8 spec/rubix/sender_spec.rb
rubix-0.5.7 spec/rubix/sender_spec.rb
rubix-0.5.6 spec/rubix/sender_spec.rb
rubix-0.5.5 spec/rubix/sender_spec.rb
rubix-0.5.4 spec/rubix/sender_spec.rb
rubix-0.5.3 spec/rubix/sender_spec.rb
rubix-0.5.2 spec/rubix/sender_spec.rb
rubix-0.5.1 spec/rubix/sender_spec.rb
rubix-0.5.0 spec/rubix/sender_spec.rb
rubix-0.4.3 spec/rubix/sender_spec.rb
rubix-0.4.2 spec/rubix/sender_spec.rb
rubix-0.4.1 spec/rubix/sender_spec.rb
rubix-0.4.0 spec/rubix/sender_spec.rb
rubix-0.3.1 spec/rubix/sender_spec.rb
rubix-0.3.0 spec/rubix/sender_spec.rb