Sha256: 2c10ec4ffec2d416715c6a688ad8d03031bfbdee09ce99c14547a515ffb09d2e

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

require "spec_helper"

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

  [ [ "a", :any_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/any_of_spec.rb
wildcard_matchers-0.9.1 spec/wildcard_matchers/helpers/any_of_spec.rb
wildcard_matchers-0.9.0 spec/wildcard_matchers/helpers/any_of_spec.rb
wildcard_matchers-0.4.0 spec/wildcard_matchers/helpers/any_of_spec.rb