Sha256: cfdbeabd2c820556f80bf67a1bb4cac8254f6809c09e843f8563b44850912ba3

Contents?: true

Size: 396 Bytes

Versions: 12

Compression:

Stored size: 396 Bytes

Contents

module RR
  module Expectations
    class AnyArgumentExpectation < ArgumentEqualityExpectation #:nodoc:
      def initialize
        super([], {})
      end

      def exact_match?(arguments, keyword_arguments)
        false
      end

      def wildcard_match?(arguments, keyword_arguments)
        true
      end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rr-3.1.1 lib/rr/expectations/any_argument_expectation.rb
rr-3.1.0 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.9 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.8 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.7 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.6 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.5 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.4 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.3 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.2 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.1 lib/rr/expectations/any_argument_expectation.rb
rr-3.0.0 lib/rr/expectations/any_argument_expectation.rb