class Shoulda::Matchers::ActiveModel::ValidatePresenceOfMatcher
def example_of_belongs_to(with: nil)
def example_of_belongs_to(with: nil) initial_call = "should belong_to(:#{association_name})" inside = if with "#{initial_call}.#{with.first}(#{with.second})" else initial_call end if Shoulda::Matchers.integrations.test_frameworks.any?(&:n_unit?) inside else "it { #{inside} }" end end