Revert "Add all_match to matchers"

This reverts commit 29cf4522e4.
This commit is contained in:
Christoph Hartmann 2016-05-11 14:42:49 +02:00
parent 48d8694789
commit 1f470971d2
2 changed files with 0 additions and 16 deletions

View file

@ -74,13 +74,6 @@ RSpec::Matchers.define :contain_legacy_plus do
end
end
# matcher to check that all entries match the regex
RSpec::Matchers.define :all_match do |regex|
match do |arr|
arr.all? { |element| element.match(regex) }
end
end
# verifies that no entry in an array contains a value
RSpec::Matchers.define :contain_match do |regex|
match do |arr|

View file

@ -1,9 +0,0 @@
# encoding: utf-8
describe ['ananas', 'apples', 'oranges', 'air', 'alot'] do
it { should all_match /[a]./}
end
describe ['ananas', 'apples', 'oranges', 'air', 'melons'] do
it { should_not all_match /[a]./}
end