blob: bddff1aea04aa7ad85c4ef614a8dbcc95adb0c7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
require 'rspec/expectations'
RSpec::Matchers.define :include_strings do |expected|
match do |actual|
includes_strings = true
expected.each do |s|
includes_strings = false unless actual.include?(s)
end
includes_strings
end
end
|