Class: Spec::Matchers::Migration::NullableColumnMatcher
- Inherits:
-
Object
- Object
- Spec::Matchers::Migration::NullableColumnMatcher
- Defined in:
- lib/spec/matchers/migration_matchers.rb
Instance Attribute Summary (collapse)
-
- (Object) column
Returns the value of attribute column.
Instance Method Summary (collapse)
Instance Attribute Details
- (Object) column
Returns the value of attribute column
68 69 70 |
# File 'lib/spec/matchers/migration_matchers.rb', line 68 def column @column end |
Instance Method Details
- (Object) failure_message
75 76 77 |
# File 'lib/spec/matchers/migration_matchers.rb', line 75 def %(expected #{column.name} to permit NULL) end |
- (Boolean) matches?(column)
70 71 72 73 |
# File 'lib/spec/matchers/migration_matchers.rb', line 70 def matches?(column) @column = column ! column.not_null end |
- (Object) negative_failure_message
79 80 81 |
# File 'lib/spec/matchers/migration_matchers.rb', line 79 def %(expected #{column.name} to be NOT NULL) end |