We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c5298 commit 78ff5feCopy full SHA for 78ff5fe
lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb
@@ -3,18 +3,6 @@
3
require 'stringio'
4
require 'rspec/expectations'
5
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
16
-end
17
18
# Custom matchers...
19
RSpec::Matchers.define :have_matching_element do |expected|
20
match do |actual|
0 commit comments