class Shoulda::Matchers::ActiveRecord::HaveRichTextMatcher

def has_attribute?

def has_attribute?
  @subject.respond_to?(rich_text_attribute.to_s)
end