Sha256: df92b55a8339d2976f24c57758de7d1fd5933a1b1bcd89c6cc1e61550b612fd5

Contents?: true

Size: 225 Bytes

Versions: 15

Compression:

Stored size: 225 Bytes

Contents

module Mocktail::Matchers
  class Matches < Base
    def self.matcher_name
      :matches
    end

    def match?(actual)
      actual.respond_to?(:match?) && actual.match?(@expected)
    rescue
      false
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mocktail-1.2.3 lib/mocktail/matchers/matches.rb
mocktail-1.2.2 lib/mocktail/matchers/matches.rb
mocktail-1.2.1 lib/mocktail/matchers/matches.rb
mocktail-1.2.0 lib/mocktail/matchers/matches.rb
mocktail-1.1.3 lib/mocktail/matchers/matches.rb
mocktail-1.1.2 lib/mocktail/matchers/matches.rb
mocktail-1.1.1 lib/mocktail/matchers/matches.rb
mocktail-1.1.0 lib/mocktail/matchers/matches.rb
mocktail-1.0.0 lib/mocktail/matchers/matches.rb
mocktail-0.0.6 lib/mocktail/matchers/matches.rb
mocktail-0.0.5 lib/mocktail/matchers/matches.rb
mocktail-0.0.4 lib/mocktail/matchers/matches.rb
mocktail-0.0.3 lib/mocktail/matchers/matches.rb
mocktail-0.0.2 lib/mocktail/matchers/matches.rb
mocktail-0.0.1 lib/mocktail/matchers/matches.rb