Sha256: 321739b33764bb59fb1e59ced3b6713fe337534d3db9f76072ae0a2ecccc036f

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activevalidators-2.1.0 test/test_helper.rb