Skip to content

Commit 3860512

Browse files
committed
(maint) remove failing test
This removes the failing test special casing for puppet 4.
1 parent 27458af commit 3860512

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spec/functions/get_module_path_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
66
it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
77
it { is_expected.to run.with_params('one', 'two', 'three').and_raise_error(Puppet::ParseError, /Wrong number of arguments, expects one/) }
8-
if Puppet.version.to_f >= 4.0
9-
it { is_expected.to run.with_params('one').and_raise_error(Puppet::Environments::EnvironmentNotFound, /Could not find a directory environment/) }
10-
else
11-
it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /Could not find module/) }
12-
end
8+
it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /Could not find module/) }
139

1410
class StubModule
1511
attr_reader :path

0 commit comments

Comments
 (0)