Sha256: 1184b381c51f2a0e432eeb7c5240caf854e041def67e5af8771070647cf01ab7
Contents?: true
Size: 555 Bytes
Versions: 16
Compression:
Stored size: 555 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'test/unit/assertions' require 'active_model/lint' class CompliantModel < CouchRest::Model::Base end describe CouchRest::Model::Base do include Test::Unit::Assertions include ActiveModel::Lint::Tests before :each do @model = CompliantModel.new end describe "active model lint tests" do ActiveModel::Lint::Tests.public_instance_methods.map{|m| m.to_s}.grep(/^test/).each do |m| example m.gsub('_',' ') do send m end end end def model @model end end
Version data entries
16 entries across 16 versions & 2 rubygems