class Representable::Matchers::HaveRepresentablePropertyMatcher
Public Class Methods
new(property)
click to toggle source
Calls superclass method
Representable::Matchers::BaseMatcher::new
# File lib/matchers/have_representable_property_matcher.rb, line 10 def initialize(property) super(property) add_representable_property_submatcher end
Public Instance Methods
description()
click to toggle source
# File lib/matchers/have_representable_property_matcher.rb, line 15 def description "only allow properties being represented by Representable" end
Private Instance Methods
add_representable_property_submatcher()
click to toggle source
# File lib/matchers/have_representable_property_matcher.rb, line 21 def add_representable_property_submatcher add_submatcher(RepresentablePropertyMatcher.new(@property)) end