|
8 | 8 |
|
9 | 9 | describe 'with no parameters' do |
10 | 10 | it 'executes successfully' do |
11 | | - is_expected.to contain_class('postgresql::globals') |
| 11 | + expect(subject).to contain_class('postgresql::globals') |
12 | 12 | end |
13 | 13 | end |
14 | 14 |
|
|
20 | 20 | end |
21 | 21 |
|
22 | 22 | it 'pulls in class postgresql::repo' do |
23 | | - is_expected.to contain_class('postgresql::repo') |
| 23 | + expect(subject).to contain_class('postgresql::repo') |
24 | 24 | end |
25 | 25 | end |
26 | 26 | end |
|
30 | 30 |
|
31 | 31 | describe 'with no parameters' do |
32 | 32 | it 'executes successfully' do |
33 | | - is_expected.to contain_class('postgresql::globals') |
| 33 | + expect(subject).to contain_class('postgresql::globals') |
34 | 34 | end |
35 | 35 | end |
36 | 36 |
|
|
43 | 43 | end |
44 | 44 |
|
45 | 45 | it 'pulls in class postgresql::repo' do |
46 | | - is_expected.to contain_class('postgresql::repo') |
| 46 | + expect(subject).to contain_class('postgresql::repo') |
47 | 47 | end |
48 | 48 |
|
49 | 49 | it do |
50 | | - is_expected.to contain_yumrepo('yum.postgresql.org').with( |
| 50 | + expect(subject).to contain_yumrepo('yum.postgresql.org').with( |
51 | 51 | 'enabled' => '1', |
52 | 52 | 'proxy' => 'http://proxy-server:8080', |
53 | 53 | ) |
54 | | - is_expected.to contain_yumrepo('pgdg-common').with( |
| 54 | + expect(subject).to contain_yumrepo('pgdg-common').with( |
55 | 55 | 'enabled' => '1', |
56 | 56 | 'proxy' => 'http://proxy-server:8080', |
57 | 57 | ) |
|
68 | 68 | end |
69 | 69 |
|
70 | 70 | it 'pulls in class postgresql::repo' do |
71 | | - is_expected.to contain_class('postgresql::repo') |
| 71 | + expect(subject).to contain_class('postgresql::repo') |
72 | 72 | end |
73 | 73 |
|
74 | 74 | it do |
75 | | - is_expected.to contain_yumrepo('yum.postgresql.org').with( |
| 75 | + expect(subject).to contain_yumrepo('yum.postgresql.org').with( |
76 | 76 | 'enabled' => '1', |
77 | 77 | 'baseurl' => 'http://mirror.localrepo.com/pgdg-postgresql', |
78 | 78 | ) |
79 | | - is_expected.to contain_yumrepo('pgdg-common').with( |
| 79 | + expect(subject).to contain_yumrepo('pgdg-common').with( |
80 | 80 | 'enabled' => '1', |
81 | 81 | 'baseurl' => 'http://mirror.localrepo.com/pgdg-common', |
82 | 82 | ) |
|
0 commit comments