Sha256: 30f3896dcc84393e4cb7165f1d72682d0757db3d4bed5b347fb46a3931fd58f5

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

shared_examples_for "ActiveModel" do
  require 'test/unit/assertions'
  require 'active_model/lint'
  include Test::Unit::Assertions
  include ActiveModel::Lint::Tests

  ActiveModel::Lint::Tests.public_instance_methods.map { |method| method.to_s }.grep(/^test/).each do |method|
    example(method.gsub('_', ' ')) { send method }
  end

  def model
    subject
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
id-0.1.1 spec/support/active_model_lint.rb
id-0.1 spec/support/active_model_lint.rb
id-0.0.12 spec/support/active_model_lint.rb
id-0.0.11 spec/support/active_model_lint.rb
id-0.0.10 spec/support/active_model_lint.rb
id-0.0.9 spec/support/active_model_lint.rb