module Shoulda::ActiveRecord::Matchers

def belong_to(name)


it { should belong_to(:parent) }

Ensure that the belongs_to relationship exists.
def belong_to(name)
  AssociationMatcher.new(:belongs_to, name)
end