summaryrefslogtreecommitdiff
path: root/spec/classes/init_spec.rb
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2017-06-24 23:44:01 -0400
committerLouis-Philippe VĂ©ronneau <pollito@riseup.net>2017-08-23 15:35:59 -0400
commit5f9ed88471a2aff0db4a90ba4dd7902c07e6a058 (patch)
tree0a9e170f638bfdce573d0237346825f253a5bccb /spec/classes/init_spec.rb
parent16e62f85e11113ff88512456a73faf2d27940893 (diff)
specs: manually define debian_nextcodename when expected to be used
with puppet 4.x when you don't define the debian_nextcodename, compilation fails saying that the variable is unknown. since we have unit tests specifically for this fact's behaviour, we want to stub out the fact's value in other tests so that we can verify the logic of manifests is actually good.
Diffstat (limited to 'spec/classes/init_spec.rb')
-rw-r--r--spec/classes/init_spec.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb
index 9ba554f..a3f19a0 100644
--- a/spec/classes/init_spec.rb
+++ b/spec/classes/init_spec.rb
@@ -5,14 +5,15 @@ describe 'apt', :type => :class do
'class { "apt": }'
end
let(:facts) { {
- :lsbdistid => 'Debian',
- :osfamily => 'Debian',
- :operatingsystem => 'Debian',
- :debian_release => 'jessie',
- :debian_codename => 'jessie',
- :lsbdistcodename => 'jessie',
- :virtual => 'physical',
- :puppetversion => Puppet.version, } }
+ :lsbdistid => 'Debian',
+ :osfamily => 'Debian',
+ :operatingsystem => 'Debian',
+ :debian_release => 'jessie',
+ :debian_codename => 'jessie',
+ :lsbdistcodename => 'jessie',
+ :debian_nextcodename => 'stretch',
+ :virtual => 'physical',
+ :puppetversion => Puppet.version, } }
#it { is_expected.to compile.with_all_deps }
it { is_expected.to compile }
end