Sha256: 0612d7e1da35289544586e730ba30e4aeb89ea9cfbaa3f58fb377411f5ce93fc

Contents?: true

Size: 163 Bytes

Versions: 15

Compression:

Stored size: 163 Bytes

Contents

module Mocktail::Matchers
  class IsA < Base
    def self.matcher_name
      :is_a
    end

    def match?(actual)
      actual.is_a?(@expected)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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