Sha256: ca1452bc2bdc7e58f3c6165671d7b994ea65ef456a078f1457a3a8e4836c3de9
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
require "test/unit" require "activerecord" require "shoulda" require "matchy" require "acts_as_filterable" ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table :contact_details, :force => true do |t| t.string :name t.string :phone_number t.string :fax_number t.float :discount end create_table :users, :force => true do |t| t.string :handle t.string :phone_number end end class ContactDetail < ActiveRecord::Base filter_for_digits :phone_number, :fax_number end class User < ActiveRecord::Base filter_for_digits :phone_number filter_for_lowercase :handle end class Test::Unit::TestCase end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_filterable-0.2.0 | test/test_helper.rb |