Method: ActiveAttr::Matchers#have_attribute
- Defined in:
- lib/active_attr/matchers/have_attribute_matcher.rb
#have_attribute(attribute_name) ⇒ ActiveAttr::HaveAttributeMatcher
Specify that a model should have an attribute matching the criteria. See HaveAttributeMatcher
18 19 20 |
# File 'lib/active_attr/matchers/have_attribute_matcher.rb', line 18 def have_attribute(attribute_name) HaveAttributeMatcher.new(attribute_name) end |