module Liquid::Rails::Rspec::DropMatchers

Public Instance Methods

belongs_to(name) click to toggle source
# File lib/liquid-rails/rspec/drop_matchers.rb, line 13
def belongs_to(name)
  AssociationMatcher.new(name, type: :belongs_to)
end
have_attribute(name) click to toggle source
# File lib/liquid-rails/rspec/drop_matchers.rb, line 5
def have_attribute(name)
  AttributeMatcher.new(name)
end
have_many(name) click to toggle source
# File lib/liquid-rails/rspec/drop_matchers.rb, line 9
def have_many(name)
  AssociationMatcher.new(name, type: :has_many)
end
have_scope(name) click to toggle source
# File lib/liquid-rails/rspec/drop_matchers.rb, line 17
def have_scope(name)
  ScopeMatcher.new(name)
end