class Shoulda::Matchers::ActiveModel::NonNullableBooleanError

@private

Attributes

attribute[RW]

Public Class Methods

create(attribute) click to toggle source
Calls superclass method Shoulda::Matchers::Error.create
# File lib/shoulda/matchers/active_model/errors.rb, line 9
def self.create(attribute)
  super(attribute: attribute)
end

Public Instance Methods

message() click to toggle source
# File lib/shoulda/matchers/active_model/errors.rb, line 15
        def message
          <<-EOT.strip
You have specified that your model's #{attribute} should ensure inclusion of nil.
However, #{attribute} is a boolean column which does not allow null values.
Hence, this test will fail and there is no way to make it pass.
          EOT
        end