Sha256: 9de2e11db35cc1500fc3f5138e4ea39fdc39d925a330ef5b405df8b9543d4347
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 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, &block) CollectionContainMatcher.new(*args, &block).spec(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remarkable-3.1.9 | spec/matchers/collection_contain_matcher.rb |