|
50 | 50 |
|
51 | 51 | describe "with python::provider" do |
52 | 52 | context "pip" do |
53 | | - let (:params) {{ :provider => 'pip' }} |
| 53 | + let (:params) {{ :provider => 'pip' }} |
54 | 54 | it { is_expected.to contain_package("virtualenv").with( |
55 | | - "provider" => "pip" |
56 | | - )} |
| 55 | + 'provider' => 'pip' |
| 56 | + )} |
57 | 57 | it { is_expected.to contain_package("pip").with( |
58 | | - "provider" => "pip" |
59 | | - )} |
| 58 | + 'provider' => 'pip' |
| 59 | + )} |
60 | 60 | end |
61 | 61 |
|
62 | 62 | # python::provider |
|
90 | 90 | let (:params) {{ :dev => '' }} |
91 | 91 | it { is_expected.to contain_package("python-dev").with_ensure('absent') } |
92 | 92 | end |
93 | | - |
| 93 | + end |
94 | 94 | end |
95 | 95 |
|
96 | 96 | context "on a Redhat 5 OS" do |
|
115 | 115 |
|
116 | 116 | describe "with python::dev" do |
117 | 117 | context "true" do |
118 | | - let (:params) {{ :dev => true }} |
119 | | - it { is_expected.to contain_package("python-devel").with( |
120 | | - "ensure" => "present") |
121 | | - } |
| 118 | + let (:params) {{ :dev => true }} |
| 119 | + it { is_expected.to contain_package("python-devel").with_ensure('present') } |
122 | 120 | end |
123 | 121 | context "empty/default" do |
124 | | - it { is_expected.to contain_package("python-devel").with( |
125 | | - "ensure" => "absent") |
126 | | - } |
| 122 | + it { is_expected.to contain_package("python-devel").with_ensure('absent') } |
127 | 123 | end |
128 | 124 | end |
129 | | - |
130 | 125 |
|
131 | 126 | describe "with manage_gunicorn" do |
132 | 127 | context "true" do |
|
145 | 140 |
|
146 | 141 | describe "with python::provider" do |
147 | 142 | context "pip" do |
148 | | - let (:params) {{ :provider => 'pip' }} |
| 143 | + let (:params) {{ :provider => 'pip' }} |
| 144 | + |
149 | 145 | it { is_expected.to contain_package("virtualenv").with( |
150 | | - "provider" => "pip" |
151 | | - )} |
| 146 | + 'provider' => 'pip' |
| 147 | + )} |
152 | 148 | it { is_expected.to contain_package("pip").with( |
153 | | - "provider" => "pip" |
154 | | - )} |
| 149 | + 'provider' => 'pip' |
| 150 | + )} |
155 | 151 | end |
156 | 152 |
|
157 | 153 | # python::provider |
|
162 | 158 |
|
163 | 159 | describe "with python::virtualenv" do |
164 | 160 | context "true" do |
165 | | - let (:params) {{ |
166 | | - :provider => '', |
167 | | - :virtualenv => true |
168 | | - }} |
169 | | - it { is_expected.to contain_package("python-virtualenv").with( |
170 | | - "ensure" => "present" |
171 | | - )} |
| 161 | + let (:params) {{ :provider => '', :virtualenv => true }} |
| 162 | + it { is_expected.to contain_package("python-virtualenv").with_ensure('present') } |
172 | 163 | end |
173 | 164 | end |
174 | 165 |
|
175 | 166 | describe "with python::virtualenv" do |
176 | 167 | context "default/empty" do |
177 | | - let (:params) {{ |
178 | | - :provider => '', |
179 | | - :virtualenv => '' |
180 | | - }} |
181 | | - it { is_expected.to contain_package("python-virtualenv").with( |
182 | | - "ensure" => "absent" |
183 | | - )} |
| 168 | + let (:params) {{ :provider => '', :virtualenv => '' }} |
| 169 | + it { is_expected.to contain_package("python-virtualenv").with_ensure('present') } |
184 | 170 | end |
185 | 171 | end |
186 | | - |
187 | | - |
188 | 172 | end |
189 | 173 | end |
190 | 174 |
|
191 | 175 | describe "with python::dev" do |
192 | 176 | context "true" do |
193 | 177 | let (:params) {{ :dev => true }} |
194 | | - it { is_expected.to contain_package("python-devel").with( |
195 | | - "ensure" => "present") |
196 | | - } |
| 178 | + it { is_expected.to contain_package("python-devel").with_ensure('present') } |
197 | 179 | end |
198 | 180 | context "default/empty" do |
199 | 181 | let (:params) {{ :dev => '' }} |
200 | | - it { is_expected.to contain_package("python-devel").with( |
201 | | - "ensure" => "absent") |
202 | | - } |
203 | | - end |
| 182 | + it { is_expected.to contain_package("python-devel").with_ensure('absent') } |
204 | 183 | end |
205 | 184 | end |
206 | | - end |
207 | | -end |
| 185 | + end |
| 186 | +end |
0 commit comments