Sha256: 104e05815793c594240d9429ea57729061e9efe8bac66264131177d8268e88ab

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

gem 'minitest'
require 'minitest/autorun'
require 'minitest/mock'
require 'active_support/test_case'

# silence warnings
old_w, $-w = $-w, false

require 'activevalidators'

# unsilence warnings
$-w = old_w

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

3 entries across 3 versions & 1 rubygems

Version Path
activevalidators-4.0.2 test/test_helper.rb
activevalidators-4.0.1 test/test_helper.rb
activevalidators-4.0.0 test/test_helper.rb