Skip to content

Commit 78ff5fe

Browse files
committed
(CONT-237) - Remove legacy jenkins matcher
1 parent 80c5298 commit 78ff5fe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
require 'stringio'
44
require 'rspec/expectations'
55

6-
########################################################################
7-
# Backward compatibility for Jenkins outdated environment.
8-
module RSpec::Matchers::BlockAliases
9-
if method_defined?(:should) && !method_defined?(:to)
10-
alias to should
11-
end
12-
if method_defined? :should_not
13-
alias to_not should_not unless method_defined? :to_not
14-
alias not_to should_not unless method_defined? :not_to
15-
end
16-
end
17-
########################################################################
186
# Custom matchers...
197
RSpec::Matchers.define :have_matching_element do |expected|
208
match do |actual|

0 commit comments

Comments
 (0)