summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJT (Jonny) <jonathan.tripathy@puppetlabs.com>2015-06-19 11:13:05 +0100
committerJT (Jonny) <jonathan.tripathy@puppetlabs.com>2015-06-19 11:13:05 +0100
commitff81517e1c957c59205a4d44659a76ee68c15a2f (patch)
tree4b87ce842ad00c6332c84da30c266e77eb65fba6 /spec
parent8267dbc149584afa4824dde7a3b95380556e2cea (diff)
parentc9e093f8d3d31f73b021e247f940c1f60be9c1e1 (diff)
downloadpuppet-stdlib-ff81517e1c957c59205a4d44659a76ee68c15a2f.tar.gz
puppet-stdlib-ff81517e1c957c59205a4d44659a76ee68c15a2f.tar.bz2
Merge pull request #474 from DavidS/fix-getvar-specs
(maint) getvar: update spec to match implementation
Diffstat (limited to 'spec')
-rwxr-xr-xspec/functions/getvar_spec.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/functions/getvar_spec.rb b/spec/functions/getvar_spec.rb
index 37125d1..6ab137e 100755
--- a/spec/functions/getvar_spec.rb
+++ b/spec/functions/getvar_spec.rb
@@ -16,13 +16,6 @@ describe 'getvar' do
it { is_expected.to run.with_params('site::data::foo').and_return('baz') }
it { is_expected.to run.with_params('::site::data::foo').and_return('baz') }
-
- context 'with strict variable checking', :if => RSpec.configuration.strict_variables do
- it { is_expected.to run.with_params('::site::data::bar').and_raise_error(ArgumentError, /undefined_variable/) }
- end
-
- context 'without strict variable checking', :unless => RSpec.configuration.strict_variables do
- it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
- end
+ it { is_expected.to run.with_params('::site::data::bar').and_return(nil) }
end
end