Sha256: 46651f031016e5c8e0990ead795a4ab17d27c4f150147365a6f488f065d098e9
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
require 'spec_helper' require 'nagios_parser/object/parser' describe "Github issues" do describe "#3" do it "can parse the user provided object config" do object = <<-__OBJ define host{ use switch host_name Foo-ibb alias Foo iBootBar address 10.3.1.20 hostgroups iboots,Foo parents Foo-modem } __OBJ out = NagiosParser::Object::Parser.parse(object) host = out['host'].first host['use'].should == 'switch' host['host_name'].should == 'Foo-ibb' host['alias'].should == 'Foo iBootBar' host['address'].should == '10.3.1.20' host['hostgroups'].should == 'iboots,Foo' host['parents'].should == 'Foo-modem' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nagios_parser-1.3.0 | spec/github_issues_spec.rb |
nagios_parser-1.2.2 | spec/github_issues_spec.rb |