module RSpec::Matchers
Public Class Methods
prepended(base)
click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 772 def self.prepended(base) base.class_eval do alias_matcher :an_array_matching, :match_array end end
Public Instance Methods
match_array(items)
click to toggle source
# File lib/super_diff/rspec/monkey_patches.rb, line 778 def match_array(items) BuiltIn::MatchArray.new(items.is_a?(String) ? [items] : items) end