|
112 | 112 | end |
113 | 113 |
|
114 | 114 | it 'should overwrite the previous values' do |
| 115 | + unless defined?(DeepMerge) |
| 116 | + skip <<~REASON |
| 117 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 118 | + REASON |
| 119 | + end |
115 | 120 | expect(config['tvrage']['service_url']).to eq('http://url2') |
116 | 121 | end |
117 | 122 |
|
|
124 | 129 | end |
125 | 130 |
|
126 | 131 | it 'should overwrite the previous values' do |
| 132 | + unless defined?(DeepMerge) |
| 133 | + skip <<~REASON |
| 134 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 135 | + REASON |
| 136 | + end |
127 | 137 | expect(config['tvrage']['service_url']).to eq('http://url3') |
128 | 138 | end |
129 | 139 | end |
|
144 | 154 | end |
145 | 155 |
|
146 | 156 | it 'should add keys from the added file' do |
| 157 | + unless defined?(DeepMerge) |
| 158 | + skip <<~REASON |
| 159 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 160 | + REASON |
| 161 | + end |
147 | 162 | expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com') |
148 | 163 | end |
149 | 164 |
|
|
154 | 169 | end |
155 | 170 |
|
156 | 171 | it 'should overwrite the previous values' do |
| 172 | + unless defined?(DeepMerge) |
| 173 | + skip <<~REASON |
| 174 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 175 | + REASON |
| 176 | + end |
157 | 177 | expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com') |
158 | 178 | end |
159 | 179 | end |
|
168 | 188 | end |
169 | 189 |
|
170 | 190 | it 'should be overwritten by the following values' do |
| 191 | + unless defined?(DeepMerge) |
| 192 | + skip <<~REASON |
| 193 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 194 | + REASON |
| 195 | + end |
171 | 196 | expect(config['tvrage']['service_url']).to eq('http://services.tvrage.com') |
172 | 197 | end |
173 | 198 |
|
|
246 | 271 | } } |
247 | 272 |
|
248 | 273 | it 'should merge the arrays' do |
| 274 | + unless defined?(DeepMerge) |
| 275 | + skip <<~REASON |
| 276 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 277 | + REASON |
| 278 | + end |
249 | 279 | config = Config.load_files("#{fixture_path}/deep_merge3/config1.yml", "#{fixture_path}/deep_merge3/config2.yml") |
250 | 280 |
|
251 | 281 | expect(config.array.length).to eq(1) |
|
261 | 291 | } } |
262 | 292 |
|
263 | 293 | it 'should merge the arrays' do |
| 294 | + unless defined?(DeepMerge) |
| 295 | + skip <<~REASON |
| 296 | + DeepMerge is not available in the current context. This test only applies when the `deep_merge` gem is available. |
| 297 | + REASON |
| 298 | + end |
264 | 299 | config = Config.load_files("#{fixture_path}/deep_merge3/config1.yml", "#{fixture_path}/deep_merge3/config2.yml") |
265 | 300 |
|
266 | 301 | expect(config.array.length).to eq(2) |
|
0 commit comments