Sha256: 7bbadbf7efa38bf6318ec0c273df6e2863523a188635daf074b3042aac1980ed
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
module Remarkable module Specs module Matchers class CollectionContainMatcher < Remarkable::Base arguments :collection => :values, :as => :value optional :working, :allow_nil default_options :working => true assertion :is_array? do @subject.is_a?(Array) end collection_assertion :included? do return @subject.include?(@value), :more => 'that ' end after_initialize do @after_initialize = true end before_assert do @before_assert = true end end def collection_contain(*args) CollectionContainMatcher.new(*args).spec(self) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems