class Spec::Matchers::Migration::PrimaryKeyMatcher

Attributes

column[RW]

Public Instance Methods

failure_message() click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 94
def failure_message
  %(expected #{column.name} to be PRIMARY KEY)
end
matches?(column) click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 89
def matches?(column)
  @column = column
  column.primary_key
end
negative_failure_message() click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 98
def negative_failure_message
  %(expected #{column.name} to not be PRIMARY KEY)
end