Sha256: fcb977561b2eb732f1de28cfa5775ba67b5fdd7a9d0c69b4d6f5b657473cf72f
Contents?: true
Size: 832 Bytes
Versions: 15
Compression:
Stored size: 832 Bytes
Contents
require 'spec/test/unit' 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 it 'must implement the #to_key interface' do test_to_key end it 'must implement the #to_param interface' do test_to_param end it 'must implement the #valid? interface' do test_valid? end it 'must implement the #persisted? interface' do test_persisted? end it 'must implement the #model_naming interface' do test_model_naming end it 'must implement the #errors interface' do test_errors_aref test_errors_full_messages end end
Version data entries
15 entries across 15 versions & 2 rubygems