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

Version Path
couchrest_model-2.2.0.beta2 spec/unit/active_model_lint_spec.rb
couchrest_model-2.2.0.beta1 spec/unit/active_model_lint_spec.rb
couchrest_model-2.1.0.rc1 spec/unit/active_model_lint_spec.rb
couchrest_model-2.1.0.beta2 spec/unit/active_model_lint_spec.rb
couchrest_model-2.1.0.beta1 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.4 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.3 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.1 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.0 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.0.beta2 spec/unit/active_model_lint_spec.rb
couchrest_model-2.0.0.beta spec/unit/active_model_lint_spec.rb
couchrest_model-1.2.0.beta spec/unit/active_model_lint_spec.rb
openlogic-couchrest_model-1.0.0 spec/unit/active_model_lint_spec.rb
couchrest_model-1.1.2 spec/unit/active_model_lint_spec.rb
couchrest_model-1.1.1 spec/unit/active_model_lint_spec.rb
couchrest_model-1.1.0 spec/unit/active_model_lint_spec.rb