Sha256: 8d59c7fed1064461ccfdf465a3a5055c26ca1a0bb4bfcd625757d886b72f20ed

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

require 'test/unit/assertions'
require 'active_model/lint'
require 'active_support/core_ext/object/blank'

shared_examples_for "ActiveModel" do
  include Test::Unit::Assertions
  include ActiveModel::Lint::Tests

  # to_s is to support ruby-1.9
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
memory_model-1.0.0 spec/support/active_model_lint.rb
memory_model-0.1.0 spec/support/active_model_lint.rb
memory_model-0.0.2 spec/support/active_model_lint.rb
memory_model-0.0.1 spec/support/active_model_lint.rb