Sha256: 69da2aa3aa470b5d1810844e2b19c92c6d02adf049fde1cba0a0b2bae22f1264
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
require File.dirname(__FILE__) + '/../../../spec_helper' require File.dirname(__FILE__) + '/../../../shared_examples/server_examples' describe 'Fog::AWS::EC2::Server' do it_should_behave_like "Server" # flavor 1 = 256, image 3 = gentoo 2008.0 subject { @server = @servers.new(:flavor_id => 1, :image_id => 3, :name => 'name') } before(:each) do @servers = servers.servers end after(:each) do if @server && !@server.new_record? @server.wait_for { ready? } @server.destroy.should be_true end end describe "#initialize" do it "should remap attributes from parser" do server = @servers.new({ 'addresses' => 'addresses', 'adminPass' => 'password', 'flavorId' => 'flavor_id', 'hostId' => 'host_id', 'imageId' => 'image_id', 'metadata' => 'metadata', 'name' => 'name', 'personality' => 'personality', 'progress' => 'progress', 'status' => 'status' }) server.addresses.should == 'addresses' server.password.should == 'password' server.flavor_id.should == 'flavor_id' server.host_id.should == 'host_id' server.image_id.should == 'image_id' server.metadata.should == 'metadata' server.name.should == 'name' server.personality.should == 'personality' server.progress.should == 'progress' server.status.should == 'status' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.40 | spec/rackspace/models/servers/server_spec.rb |