Sha256: da08cc94589bf983cbd6500d39191f6c84ee70b62bd472ca5442ae1967ef9227
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smart_rspec-0.1.3 | lib/smart_rspec/matchers/other_matchers.rb |
smart_rspec-0.1.2 | lib/smart_rspec/matchers/other_matchers.rb |