Sha256: 3de16a83a0ac10e8d69f9e350b35a18fc967aaa02dfbcaf39f7676490ccc1e7d

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

require "spec_helper"

describe WildcardMatchers::Helpers::AllOf do
  [ [ "a", :all_of, [ String, /a/ ] ],
  ].each do |actual, helper, matcher, *args|
    it_behaves_like "wildcard match with helper", actual, helper, matcher, *args
  end

  [ [ "a", :all_of, [ Integer, /a/ ] ],
    [ "a", :all_of, [ String,  /b/ ] ],
    [ "a", :all_of, [ Integer, /b/ ] ],
  ].each do |actual, helper, matcher, *args|
    it_behaves_like "not wildcard match with helper", actual, helper, matcher, *args
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 spec/wildcard_matchers/helpers/all_of_spec.rb
wildcard_matchers-0.9.1 spec/wildcard_matchers/helpers/all_of_spec.rb
wildcard_matchers-0.9.0 spec/wildcard_matchers/helpers/all_of_spec.rb
wildcard_matchers-0.4.0 spec/wildcard_matchers/helpers/all_of_spec.rb