Sha256: 61b412911a7fa623396af5ebebb0a9261d04862f296dabbd4c33688d91b96c14

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

module Quickdraw::Matchers::RespondTo
	def to_respond_to(method)
		assert value.respond_to?(method) do
			"expected `#{value.inspect}` to respond to `#{method.inspect}`"
		end
	end

	def not_to_respond_to(method)
		refute value.respond_to?(method) do
			"expected `#{value.inspect}` to not respond to `#{method.inspect}`"
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quickdraw-0.1.0 lib/quickdraw/matchers/respond_to.rb