Module: Liquid::Rails::Rspec::DropMatchers
- Included in:
- DropExampleGroup
- Defined in:
- lib/liquid4-rails/rspec/drop_matchers.rb
Defined Under Namespace
Classes: AssociationMatcher, AttributeMatcher, ScopeMatcher
Instance Method Summary
collapse
Instance Method Details
#belongs_to(name) ⇒ Object
13
14
15
|
# File 'lib/liquid4-rails/rspec/drop_matchers.rb', line 13
def belongs_to(name)
AssociationMatcher.new(name, type: :belongs_to)
end
|
#have_attribute(name) ⇒ Object
5
6
7
|
# File 'lib/liquid4-rails/rspec/drop_matchers.rb', line 5
def have_attribute(name)
AttributeMatcher.new(name)
end
|
#have_many(name) ⇒ Object
9
10
11
|
# File 'lib/liquid4-rails/rspec/drop_matchers.rb', line 9
def have_many(name)
AssociationMatcher.new(name, type: :has_many)
end
|
#have_scope(name) ⇒ Object
17
18
19
|
# File 'lib/liquid4-rails/rspec/drop_matchers.rb', line 17
def have_scope(name)
ScopeMatcher.new(name)
end
|