class Shoulda::Matchers::ActiveRecord::AssociationMatchers::DependentMatcher

def description

def description
  "dependent => #{dependent}"
end

def initialize(dependent, name)

def initialize(dependent, name)
  @dependent = dependent
  @name = name
  @missing_option = ''
end

def matches?(subject)

def matches?(subject)
  self.subject = ModelReflector.new(subject, name)
  if option_verifier.correct_for_string?(:dependent, dependent)
    true
  else
    self.missing_option = "#{name} should have #{dependent} dependency"
    false
  end
end

def option_verifier

def option_verifier
  @option_verifier ||= OptionVerifier.new(subject)
end