Sha256: 3684767c89764d8d114e1bddb0f75cedeefb53a28692779b8c484b16d19312c0
Contents?: true
Size: 718 Bytes
Versions: 19
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' describe Profitbricks::Image do include Savon::Spec::Macros it "should find all images" do savon.expects(:get_all_images).returns(:success) Image.all.count.should == 7 end it "should find an image by name" do savon.expects(:get_all_images).returns(:success) image = Image.find(:name => "Windows8-ConsumerPreview-64bit-English.iso") image.os_type.should == "UNKNOWN" end it "should update the os_type" do savon.expects(:get_all_images).returns(:success) savon.expects(:set_image_os_type).returns(:success) image = Image.find(:name => "Windows8-ConsumerPreview-64bit-English.iso") image.set_os_type("WINDOWS").os_type.should == "WINDOWS" end end
Version data entries
19 entries across 19 versions & 1 rubygems