class Representable::Matchers::HaveRepresentableCollectionMatcher

Public Class Methods

new(property) click to toggle source
# File lib/matchers/have_representable_collection_matcher.rb, line 10
def initialize(property)
  super(property)
  add_representable_collection_submatcher
end

Public Instance Methods

description() click to toggle source
# File lib/matchers/have_representable_collection_matcher.rb, line 20
def description
  "only allow properties being represented by Representable"
end
parse_strategy(strategy) click to toggle source
# File lib/matchers/have_representable_collection_matcher.rb, line 15
def parse_strategy(strategy)
  add_submatcher(ParseStrategyMatcher.new(@property, strategy))
  self
end

Private Instance Methods

add_representable_collection_submatcher() click to toggle source
# File lib/matchers/have_representable_collection_matcher.rb, line 26
def add_representable_collection_submatcher
  add_submatcher(RepresentableCollectionMatcher.new(@property))
end