spec/host_spec.rb in infoblox-0.0.11 vs spec/host_spec.rb in infoblox-0.1.0
- old
+ new
@@ -15,15 +15,15 @@
allow(conn).to receive(:post).with(uri, {
:ipv4addrs => [{:ipv4addr => "10.10.10.10"}],
:name => "test-server.test.ing",
:configure_for_dns => nil,
- :extensible_attributes => nil}).and_return(HostResponse.new("hey"))
+ :extensible_attributes => nil}).and_return(HostResponse.new("\"hey\""))
- Infoblox::Host.connection = conn
- h = Infoblox::Host.new
+ h = Infoblox::Host.new(:connection => conn)
h.add_ipv4addr("10.10.10.10")
h.name = "test-server.test.ing"
h.post
+ h._ref.should eq("hey")
end
end