Sha256: 6936557fa8cacfc6b06bd046c7e73279afc39262269d4e1d58c2750bf92a6dc3
Contents?: true
Size: 389 Bytes
Versions: 16
Compression:
Stored size: 389 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
16 entries across 16 versions & 2 rubygems