spec/unit/chef/sugar/platform_spec.rb in chef-sugar-2.5.0 vs spec/unit/chef/sugar/platform_spec.rb in chef-sugar-3.0.0

- old
+ new

@@ -267,7 +267,21 @@ it 'returns false when the version is not less than the major' do node = { 'platform' => 'debian', 'platform_version' => '8.0' } expect(described_class.debian_before_wheezy?(node)).to be false end end + + describe '#solaris_10?' do + it 'returns true when the version is 5.10' do + node = { 'platform' => 'solaris2', 'platform_version' => '5.10' } + expect(described_class.solaris_10?(node)).to be true + end + end + + describe '#solaris_11?' do + it 'returns true when the version is 5.11' do + node = { 'platform' => 'solaris2', 'platform_version' => '5.11' } + expect(described_class.solaris_11?(node)).to be true + end + end end end