Sha256: 1750cc78fc0bb4880be9122a85c4dbeffaaf8e937c15e9fb8714ebac6ea9c1ac

Contents?: true

Size: 655 Bytes

Versions: 6

Compression:

Stored size: 655 Bytes

Contents

gem 'minitest'
require 'minitest/autorun'
require 'minitest/mock'
old_w, $-w = $-w, false
require 'active_support/test_case'
$-w = old_w
require 'activevalidators'

class TestRecord
  include ActiveModel::Validations
  attr_accessor :ip, :url, :slug, :responder, :global_condition,
    :local_condition, :phone, :email, :card, :password, :twitter_username,
    :postal_code, :carrier, :tracking_number, :start_date, :end_date, :siren, :ssn, :sin, :nino, :barcode,
    :text_color, :redirect_rule

  def initialize(attrs = {})
    attrs.each_pair { |k,v| send("#{k}=", v) }
  end
end

class Minitest::Spec
  include ActiveSupport::Testing::Deprecation
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activevalidators-6.0.0 test/test_helper.rb
activevalidators-5.1.0 test/test_helper.rb
activevalidators-5.0.1 test/test_helper.rb
activevalidators-5.0.0 test/test_helper.rb
activevalidators-4.1.0 test/test_helper.rb
activevalidators-4.0.3 test/test_helper.rb