Sha256: cbb34d4893912fdb941ddc086ddce4f301fb241eaf07612b19d70bc4c86dc13c
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
module SmartRspec module Matchers module OtherMatchers extend RSpec::Matchers::DSL matcher :have_error_on do |attr| match { |actual| actual.errors.keys.include?(attr) } end matcher :include_items do |*items| match { |actual| (items.flatten(1) - actual).empty? } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems