Sha256: 312a9201d4f59628f5e3da051cd8999b0f56cb73f27299cd19b80f6f80bc4866

Contents?: true

Size: 220 Bytes

Versions: 11

Compression:

Stored size: 220 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
flombe-0.1.0.12 spec/support/matchers.rb
flombe-0.1.0.11 spec/support/matchers.rb
flombe-0.1.0.10 spec/support/matchers.rb
flombe-0.1.0.9 spec/support/matchers.rb
flombe-0.1.0.8 spec/support/matchers.rb
flombe-0.1.0.7 spec/support/matchers.rb
flombe-0.1.0.6 spec/support/matchers.rb
flombe-0.1.0.5 spec/support/matchers.rb
flombe-0.1.0.4 spec/support/matchers.rb
flombe-0.1.0.3 spec/support/matchers.rb
flombe-0.1.0.2 spec/support/matchers.rb