spec/host_spec.rb in infoblox-0.2.8 vs spec/host_spec.rb in infoblox-0.2.9

- old
+ new

@@ -12,17 +12,19 @@ it "posts correctly" do conn = double uri = Infoblox::BASE_PATH + Infoblox::Host.wapi_object allow(conn).to receive(:post).with(uri, { - :ipv4addrs => [{:ipv4addr => "10.10.10.10"}], + :ipv4addrs => [{:ipv4addr => "10.10.10.10"}, + {:ipv4addr => "192.168.1.1", :mac => "109coic0932j3n0293urf"}], :name => "test-server.test.ing", :configure_for_dns => nil, :extensible_attributes => nil, :view => nil}).and_return(HostResponse.new("\"hey\"")) h = Infoblox::Host.new(:connection => conn) h.add_ipv4addr("10.10.10.10") + h.ipv4addrs=([{:ipv4addr => "192.168.1.1", :mac => "109coic0932j3n0293urf"}]) h.name = "test-server.test.ing" h.post h._ref.should eq("hey") end end