Module: FoundationApi::ShouldaMatcher
- Defined in:
- lib/foundation_api/shoulda_matcher.rb,
lib/foundation_api/shoulda_matcher/attribute_alias_matcher.rb,
lib/foundation_api/shoulda_matcher/persistence_method_matcher.rb
Defined Under Namespace
Classes: AttributeAliasMatcher, PersistenceMethodMatcher
Instance Method Summary
collapse
Instance Method Details
#have_attribute_alias(alias_name) ⇒ Object
6
7
8
|
# File 'lib/foundation_api/shoulda_matcher.rb', line 6
def have_attribute_alias(alias_name)
FoundationApi::ShouldaMatcher::AttributeAliasMatcher.new(alias_name)
end
|
#have_persistence_method(method) ⇒ Object
10
11
12
|
# File 'lib/foundation_api/shoulda_matcher.rb', line 10
def have_persistence_method(method)
FoundationApi::ShouldaMatcher::PersistenceMethodMatcher.new(method)
end
|