spec/unit/chef/extensions/cloud_spec.rb in chef-sugar-1.0.1 vs spec/unit/chef/extensions/cloud_spec.rb in chef-sugar-1.1.0
- old
+ new
@@ -97,9 +97,21 @@
node = {}
expect(described_class.openstack?(node)).to be_false
end
end
+ describe '#cloudstack?' do
+ it 'is true when the node is on cloudstack' do
+ node = { 'cloudstack' => nil }
+ expect(described_class.cloudstack?(node)).to be_true
+ end
+
+ it 'is false when the node is not on cloudstack' do
+ node = {}
+ expect(described_class.cloudstack?(node)).to be_false
+ end
+ end
+
describe '#azure?' do
it 'is true when the node is on azure' do
node = { 'azure' => nil }
expect(described_class.azure?(node)).to be_true
end