File: any_argument_expectation.rb

package info (click to toggle)
ruby-rr 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,424 kB
  • sloc: ruby: 11,405; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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