Module: Shoulda::Matchers::ActiveModel

Defined in:
lib/beyond_the_api_test_helpers/shoulda/validate_timeliness.rb,
lib/beyond_the_api_test_helpers/shoulda/have_model_translations.rb

Defined Under Namespace

Classes: HaveModelTranslationsMatcher, ValidateTimelinessMatcher

Instance Method Summary collapse

Instance Method Details

#have_model_translations(options = {}) ⇒ Object



4
5
6
# File 'lib/beyond_the_api_test_helpers/shoulda/have_model_translations.rb', line 4

def have_model_translations(options = {})
  HaveModelTranslationsMatcher.new(options)
end

#validate_timeliness(attribute, date_type) ⇒ Object



4
5
6
# File 'lib/beyond_the_api_test_helpers/shoulda/validate_timeliness.rb', line 4

def validate_timeliness(attribute, date_type)
  ValidateTimelinessMatcher.new(attribute, date_type)
end