module Shoulda::Hanami::Matchers

Public Instance Methods

allow_value(value) click to toggle source
# File lib/shoulda/hanami/matchers/allow_value_matcher.rb, line 4
def allow_value(value)
  AllowValueMatcher.new(value)
end
validate_inclusion_of(attribute) click to toggle source
# File lib/shoulda/hanami/matchers/validate_inclusion_of_matcher.rb, line 4
def validate_inclusion_of(attribute)
  ValidateInclusionOfMatcher.new(attribute)
end
validate_length_of(attribute) click to toggle source
# File lib/shoulda/hanami/matchers/validate_length_of_matcher.rb, line 4
def validate_length_of(attribute)
  ValidateLengthOfMatcher.new(attribute)
end
validate_presence_of(attribute) click to toggle source
# File lib/shoulda/hanami/matchers/validate_presence_of_matcher.rb, line 4
def validate_presence_of(attribute)
  ValidatePresenceOfMatcher.new(attribute)
end