spec/requests/host_request_spec.rb in rubix-0.5.8 vs spec/requests/host_request_spec.rb in rubix-0.5.9

- old
+ new

@@ -30,9 +30,18 @@ host.save.should be_true host.monitored.should be_true host.use_ip.should be_true host.ip.should == '123.123.123.123' end + + it "can be created with a blank IP" do + host = Rubix::Host.new(:name => 'rubix_spec_host_1', :host_groups => [@host_group_1], :ip => '0.0.0.0') + host.save.should be_true + host.monitored.should be_true + host.use_ip.should be_true + host.ip.should == '0.0.0.0' + end + end describe "when existing" do before do @host_group_2 = ensure_save(Rubix::HostGroup.new(:name => 'rubix_spec_host_group_2'))