Sha256: 7260d0a96a0d5a20b04bd6fade52e27d39daea9925866366b55f582b7df129ce
Contents?: true
Size: 706 Bytes
Versions: 19
Compression:
Stored size: 706 Bytes
Contents
require 'spec_helper' describe Profitbricks::IpBlock do include Savon::Spec::Macros it "should reserve a block" do savon.expects(:reserve_public_ip_block).returns(:success) block = IpBlock.reserve(2) block.ips.count.should == 2 end it "should list all available blocks" do savon.expects(:get_all_public_ip_blocks).returns(:success) blocks = IpBlock.all() blocks.count.should == 1 blocks.first.ips.count.should == 2 end it "should release a block properly" do savon.expects(:get_all_public_ip_blocks).returns(:success) savon.expects(:release_public_ip_block).returns(:success) blocks = IpBlock.all() blocks.first.release.should == true end end
Version data entries
19 entries across 19 versions & 1 rubygems