Sha256: eaff47d04fe33db20461b94cded7c6eeaf07ef2b115766587db5f9bb1df3617a
Contents?: true
Size: 469 Bytes
Versions: 6
Compression:
Stored size: 469 Bytes
Contents
RSpec::Matchers.define :validate_timeliness_of do |attribute| match do |model| ValidatorDetector.detect(model, attribute, ActiveModel::Validations::TimelinessValidator) end failure_message_for_should do |actual| "expect #{attribute} to validate timeliness of" end failure_message_for_should_not do |actual| "expect #{attribute} to not validate timeliness of" end description do "expect #{attribute} to validate timeliness of" end end
Version data entries
6 entries across 6 versions & 1 rubygems