Sha256: 434ba4fd6b93d52be9a8af189ac3fd0f1c0ffd7deb872c480ab437217b334821

Contents?: true

Size: 342 Bytes

Versions: 23

Compression:

Stored size: 342 Bytes

Contents

module RR
  module Expectations
    class AnyArgumentExpectation < ArgumentEqualityExpectation
      def initialize
        super
      end

      def exact_match?(*arguments)
        false
      end

      def wildcard_match?(*arguments)
        true
      end

      def ==(other)
        other.is_a?(self.class)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rr-0.3.6 lib/rr/expectations/any_argument_expectation.rb
rr-0.3.8 lib/rr/expectations/any_argument_expectation.rb
rr-0.3.7 lib/rr/expectations/any_argument_expectation.rb