spec/requests/host_request_spec.rb in rubix-0.5.4 vs spec/requests/host_request_spec.rb in rubix-0.5.5

- old
+ new

@@ -2,11 +2,11 @@ describe "Hosts" do before do integration_test - @host_group_1 = ensure_save(Rubix::HostGroup.new(:name => 'rubix_spec_host_group_1')) + @host_group_1 = ensure_save(Rubix::HostGroup.new(:name => 'rubix_spec_host_group_1', :ip => '123.123.123.123')) end after do truncate_all_tables end @@ -24,13 +24,14 @@ it "returns an empty array when listing with IDs" do Rubix::Host.list([1,2,3]).should == [] end it "can be created" do - host = Rubix::Host.new(:name => 'rubix_spec_host_1', :host_groups => [@host_group_1]) + host = Rubix::Host.new(:name => 'rubix_spec_host_1', :host_groups => [@host_group_1], :ip => '123.123.123.123') host.save.should be_true host.monitored.should be_true host.use_ip.should be_true + host.ip.should == '123.123.123.123' end end describe "when existing" do before do