Sha256: de920dc6e9b44e509ebed840002496b8cdafbb63a3e6c062593a1f1810f3cb60

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

gem 'minitest'
require 'minitest/autorun'
require 'minitest/mock'

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activevalidators-3.3.0 test/test_helper.rb
activevalidators-3.2.0 test/test_helper.rb