Sha256: a4cf756739ed24180cea917170a075554e69027c7d343b3725895414a6d8b4a7
Contents?: true
Size: 807 Bytes
Versions: 2
Compression:
Stored size: 807 Bytes
Contents
require 'spec_helper' describe Squall::IpAddressJoin do before(:each) do @join = Squall::IpAddressJoin.new end describe "#list" do use_vcr_cassette 'ipaddress_join/list' it "returns list of ip_addresses" do ips = @join.list(1) ips.should be_an(Array) end it "contains IP address data" do ips = @join.list(1) ips.all?.should be_true end end describe "#assign" do use_vcr_cassette "ipaddress_join/assign" it "assigns the IP join" do join = @join.assign(1, {ip_address_id: 1, network_interface_id: 1}) @join.success.should be_true end end describe "#delete" do use_vcr_cassette "ipaddress_join/delete" it "deletes the IP join" do @join.delete(1, 1) @join.success.should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squall-1.4.0 | spec/squall/ip_address_join_spec.rb |
squall-1.3.1 | spec/squall/ip_address_join_spec.rb |