diff --git a/spec/interfaces/udp_interface_spec.rb b/spec/interfaces/udp_interface_spec.rb index f7ead7134..e85c43a91 100644 --- a/spec/interfaces/udp_interface_spec.rb +++ b/spec/interfaces/udp_interface_spec.rb @@ -21,6 +21,10 @@ module Cosmos expect(i.instance_variable_get("@hostname")).to eql '127.0.0.1' expect(i.instance_variable_get("@interface_address")).to eql '127.0.0.1' expect(i.instance_variable_get("@bind_address")).to eql '127.0.0.1' + i = UdpInterface.new('10.10.10.1','8888','8889','8890','10.10.10.2','64','5','5','10.10.10.3') + expect(i.instance_variable_get("@hostname")).to eql '10.10.10.1' + expect(i.instance_variable_get("@interface_address")).to eql '10.10.10.2' + expect(i.instance_variable_get("@bind_address")).to eql '10.10.10.3' end it "is not writeable if no write port given" do