Sha256: 0f9135ed5ef2e342786e11e7fef5c67d54ebfaafca1c23c04599226543ec56f9
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' describe Ey::Provisioner::Instance do describe "initialize" do let(:instance_attrs) do { "amazon_id" => "1234", "bootstrapped_at" => "2013-01-01 12:00", "chef_status" => [{"message"=>"Processing memcached", "timestamp"=>"2013-08-09T01:25:25+00:00"}], "id" => 260323, "name" => "dantest", "private_hostname" => "privatehostname", "public_hostname" => "publichostname", "role" => "util", "status" => "starting" } end subject { Ey::Provisioner::Instance.new(instance_attrs) } its(:amazon_id) { should == "1234" } its(:id) { should == 260323 } its(:bootstrapped_at) { should == "2013-01-01 12:00" } its(:chef_status) { [{"message"=>"Processing memcached", "timestamp"=>"2013-08-09T01:25:25+00:00"}] } its(:name) { should == 'dantest' } its(:private_hostname) { should == 'privatehostname' } its(:public_hostname) { should == 'publichostname' } its(:role) { should == 'util' } its(:status) { should == 'starting' } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ey-provisioner-1.0.3 | spec/instance_spec.rb |
ey-provisioner-1.0.2 | spec/instance_spec.rb |
ey-provisioner-1.0.1 | spec/instance_spec.rb |
ey-provisioner-1.0.0 | spec/instance_spec.rb |