Module: ActiveAttr::Matchers
- Defined in:
- lib/active_attr/matchers.rb,
lib/active_attr/matchers/have_attribute_matcher.rb
Overview
Matchers that can be used with RSpec and Shoulda to declaritively verify models based on ActiveAttr modules
Defined Under Namespace
Classes: HaveAttributeMatcher
Instance Method Summary (collapse)
-
- (ActiveAttr::HaveAttributeMatcher) have_attribute(attribute_name)
Specify that a model should have an attribute matching the criteria.
Instance Method Details
- (ActiveAttr::HaveAttributeMatcher) have_attribute(attribute_name)
Specify that a model should have an attribute matching the criteria. See HaveAttributeMatcher
16 17 18 |
# File 'lib/active_attr/matchers/have_attribute_matcher.rb', line 16 def have_attribute(attribute_name) HaveAttributeMatcher.new(attribute_name) end |