module RSpec module Matchers RSpec::Matchers.define :have_recipe do |*args| match do |actual| actual.length == args.length && actual.all? { |a| args.include?(a.full_name) } end end end end