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