Sha256: 2370d05e88518e3a51f3893cc76ae741d0a826125437aab8c553218ddae44328
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'spec/test/unit' require 'active_support/core_ext/object/blank' # needed by active_model/lint require 'active_model/lint' # This must be kept in sync with active_model/lint tests # at least for as long as # # http://rspec.lighthouseapp.com/projects/5645/tickets/900 # # isn't resolved in some way (probably with rspec2) share_examples_for 'an active_model compliant object' do include ActiveModel::Lint::Tests instance_methods.grep(/^test_/).each do |meth| it meth.to_s do send(meth) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ardm-active_model-1.3.0 | spec/amo_interface_compliance_spec.rb |