Sha256: 0c6c680633143f30183753bb53d09980dd79b4d2e340981eaafbce5e2974c000
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true module Quickdraw::Matchers::ToBeA def to_be_a(type) assert type === value do "expected `#{value.inspect}` to have the type `#{type.inspect}`" end end def not_to_be_a(type) refute type === value do "expected `#{value.inspect}` to not have the type `#{type.inspect}`" end end alias_method :to_be_an, :to_be_a alias_method :not_to_be_an, :not_to_be_a end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quickdraw-0.1.0 | lib/quickdraw/matchers/to_be_a.rb |