summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppetlabs.com>2016-04-05 14:42:53 +0100
committerDavid Schmitt <david.schmitt@puppetlabs.com>2016-04-07 12:31:06 +0100
commit3860512d5611d9c3a93f75d9594c2df43ee64acb (patch)
tree65e51c704f27042541bfb11da2765572453dc34a /spec/functions
parent27458aff988aac083007a677793081568356d85d (diff)
(maint) remove failing test
This removes the failing test special casing for puppet 4.
Diffstat (limited to 'spec/functions')
-rwxr-xr-xspec/functions/get_module_path_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/functions/get_module_path_spec.rb b/spec/functions/get_module_path_spec.rb
index b1f682f..a39e413 100755
--- a/spec/functions/get_module_path_spec.rb
+++ b/spec/functions/get_module_path_spec.rb
@@ -5,11 +5,7 @@ describe 'get_module_path' do
it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
it { is_expected.to run.with_params('one', 'two', 'three').and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
- if Puppet.version.to_f >= 4.0
- it { is_expected.to run.with_params('one').and_raise_error(Puppet::Environments::EnvironmentNotFound, /Could not find a directory environment/) }
- else
- it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /Could not find module/) }
- end
+ it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /Could not find module/) }
class StubModule
attr_reader :path