Changeset ad28f83 for src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_array_spec.rb
- Timestamp:
- Aug 1, 2017, 3:45:14 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- ce0f6a4
- Parents:
- bcf0be5 (diff), cd0f9cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/modules/stdlib/spec/functions/validate_array_spec.rb
rbcf0be5 rad28f83 2 2 3 3 describe 'validate_array' do 4 4 5 describe 'signature validation' do 6 after(:all) do 7 ENV.delete('STDLIB_LOG_DEPRECATIONS') 8 end 5 9 it { is_expected.not_to eq(nil) } 10 # Checking for deprecation warning 11 it 'should display a single deprecation' do 12 ENV['STDLIB_LOG_DEPRECATIONS'] = "true" 13 scope.expects(:warning).with(includes('This method is deprecated')) 14 is_expected.to run.with_params([]) 15 end 6 16 it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } 7 17
Note:
See TracChangeset
for help on using the changeset viewer.
