nsca-client/spec/nsca/client/service_spec.rb

17 lines
481 B
Ruby
Raw Normal View History

2012-12-07 19:40:40 +01:00
require 'spec_helper'
describe NSCA::Client::Service do
let(:host) { NSCA::Client::Host.new(:hostname => 'asdf') }
subject { described_class.new(:name => 'TestMessage', :host => host) }
its(:name) { should eq 'TestMessage' }
its(:host) { should eq host }
context "default host to current machine" do
subject { described_class.new(:name => 'SimpleMessage') }
its(:name) { should eq 'SimpleMessage' }
its(:host) { should be_a NSCA::Client::Host }
end
end