Sha256: 843cef01c70ff809e544ed70af31fdf6e0f6cf5884af99a9b6a3981b94c6dd0e
Contents?: true
Size: 647 Bytes
Versions: 6
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe "CRUD for host groups" do it "should be able to create, update, and destroy a host group" do integration_test Rubix::HostGroup.find(:name => 'rubix_spec_host_group_1').should be_nil hg = Rubix::HostGroup.new(:name => 'rubix_spec_host_group_1') hg.save Rubix::HostGroup.find(:name => 'rubix_spec_host_group_1').should_not be_nil id = hg.id id.should_not be_nil hg.name = 'rubix_spec_host_group_2' hg.update Rubix::HostGroup.find(:id => id).name.should == 'rubix_spec_host_group_2' hg.destroy Rubix::HostGroup.find(:id => id).should be_nil end end
Version data entries
6 entries across 6 versions & 1 rubygems