failure_message()
click to toggle source
def failure_message
%(expected #{table} to have column '#{column_name}')
end
matches?(table)
click to toggle source
def matches?(table)
@table = table
table.columns.map { |c| c.name }.include?(column_name.to_s)
end
negative_failure_message()
click to toggle source
def negative_failure_message
%(expected #{table} to not have column '#{column_name}')
end