Sha256: d4c19935d0484dc8c650efd166430b04637a3760385df16b430f657410508108
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
require 'spec/test/unit' require 'lib/amo_lint_extensions' share_examples_for 'an active_model/validations compliant object' do include ActiveModel::Lint::Tests::Validations ActiveModel::Lint::Tests::Validations::VALIDATION_METHODS.each do |validation_method| it "must implement the .#{validation_method} interface" do send("test_#{validation_method}") end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ardm-active_model-1.3.0 | spec/amo_validation_compliance_spec.rb |
tpitale-dm-active_model-1.3.0 | spec/amo_validation_compliance_spec.rb |