class Spec::Matchers::Migration::NullableColumnMatcher
Attributes
column[RW]
Public Instance Methods
failure_message()
click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 75 def failure_message %(expected #{column.name} to permit NULL) end
matches?(column)
click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 70 def matches?(column) @column = column ! column.not_null end
negative_failure_message()
click to toggle source
# File lib/spec/matchers/migration_matchers.rb, line 79 def negative_failure_message %(expected #{column.name} to be NOT NULL) end