class Shoulda::ActiveRecord::Matchers::AssociationMatcher
def join_table_exists?
def join_table_exists? if @macro != :has_and_belongs_to_many || ::ActiveRecord::Base.connection.tables.include?(join_table.to_s) true else @missing = "join table #{join_table} doesn't exist" false end end