Sha256: 403aa9357f697683b775f5b3ee8aaf780bbd3b854c5a357d97e84051286edb7f
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
require "active_model/lint" require "test/unit/assertions" shared_examples_for 'ActiveModel' do include ActiveModel::Lint::Tests include Test::Unit::Assertions before { @model = subject } ActiveModel::Lint::Tests.public_instance_methods.map(&:to_s).grep(/^test/).each do |test| example test.gsub("_", " ") do send test end end end
Version data entries
5 entries across 5 versions & 1 rubygems