nsca-client/spec/nsca/client/service_spec.rb
2012-12-07 16:40:40 -02:00

17 lines
481 B
Ruby

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