|
24 | 24 |
|
25 | 25 | # this lambda is required due to strangeness within rspec-puppet's expectation handling
|
26 | 26 | it { expect(-> { catalogue }).to contain_package('puppet').with_ensure('absent') }
|
27 |
| - it { expect(-> { catalogue }).to contain_package('facter').with_ensure('present') } |
| 27 | + it { expect(-> { catalogue }).to contain_package('facter').with_ensure('installed') } |
28 | 28 | end
|
29 | 29 |
|
30 | 30 | describe 'after running ensure_package("facter", { "provider" => "gem" })' do
|
31 | 31 | before(:each) { subject.execute('facter', 'provider' => 'gem') }
|
32 | 32 |
|
33 | 33 | # this lambda is required due to strangeness within rspec-puppet's expectation handling
|
34 | 34 | it { expect(-> { catalogue }).to contain_package('puppet').with_ensure('absent').without_provider }
|
35 |
| - it { expect(-> { catalogue }).to contain_package('facter').with_ensure('present').with_provider('gem') } |
| 35 | + it { expect(-> { catalogue }).to contain_package('facter').with_ensure('installed').with_provider('gem') } |
36 | 36 | end
|
37 | 37 | end
|
38 | 38 |
|
|
52 | 52 | end
|
53 | 53 |
|
54 | 54 | # this lambda is required due to strangeness within rspec-puppet's expectation handling
|
55 |
| - it { expect(-> { catalogue }).to contain_package('foo').with('provider' => 'rpm', 'ensure' => 'present') } |
56 |
| - it { expect(-> { catalogue }).to contain_package('bar').with('provider' => 'gem', 'ensure' => 'present') } |
| 55 | + it { expect(-> { catalogue }).to contain_package('foo').with('provider' => 'rpm', 'ensure' => 'installed') } |
| 56 | + it { expect(-> { catalogue }).to contain_package('bar').with('provider' => 'gem', 'ensure' => 'installed') } |
57 | 57 |
|
58 | 58 | context 'with UTF8 and double byte characters' do
|
59 | 59 | it { expect(-> { catalogue }).to contain_package('パッケージ').with('ensure' => 'absent') }
|
60 | 60 | it { expect(-> { catalogue }).to contain_package('ρǻ¢κầģẻ').with('ensure' => 'absent') }
|
61 | 61 | end
|
62 | 62 | end
|
63 | 63 |
|
64 |
| - context 'when given a catalog with "package { puppet: ensure => present }"' do |
65 |
| - let(:pre_condition) { 'package { puppet: ensure => present }' } |
| 64 | + context 'when given a catalog with "package { puppet: ensure => installed }"' do |
| 65 | + let(:pre_condition) { 'package { puppet: ensure => installed }' } |
66 | 66 |
|
67 |
| - describe 'after running ensure_package("puppet", { "ensure" => "installed" })' do |
68 |
| - before(:each) { subject.execute('puppet', 'ensure' => 'installed') } |
| 67 | + describe 'after running ensure_package("puppet", { "ensure" => "present" })' do |
| 68 | + before(:each) { subject.execute('puppet', 'ensure' => 'present') } |
69 | 69 |
|
70 | 70 | # this lambda is required due to strangeness within rspec-puppet's expectation handling
|
71 |
| - it { expect(-> { catalogue }).to contain_package('puppet').with_ensure('present') } |
| 71 | + it { expect(-> { catalogue }).to contain_package('puppet').with_ensure('installed') } |
72 | 72 | end
|
73 | 73 | end
|
74 | 74 | end
|
0 commit comments