Sha256: 93235299076fa448b7056e5af0c7def3ab9db57a723a1848c9b9360777f48151

Contents?: true

Size: 381 Bytes

Versions: 11

Compression:

Stored size: 381 Bytes

Contents

module WildcardMatchers
  module Helpers
    define_wildcard_helper(:responding)

    class Responding < ::WildcardMatchers::WildcardMatcher
      protected
      def wildcard_match(actual)
        expectation.each do |key, value|
          errors.push(*self.class.superclass.check_errors(actual.__send__(key), value, position + ".#{key}"))
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.9.1 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.9.0 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.4.0 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.3.1 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.3.0 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.2.1 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.2.0 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.1.8 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.1.7 lib/wildcard_matchers/helpers/responding.rb
wildcard_matchers-0.1.6 lib/wildcard_matchers/helpers/responding.rb