Sha256: cb9638cb671aad85b3d0b5944db58c44ec3a8b89688dce46909f40cbc400f456
Contents?: true
Size: 724 Bytes
Versions: 4
Compression:
Stored size: 724 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'active_record' require 'phone_number' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| end ActiveRecord::Base.configurations = YAML::load( IO.read( File.dirname(__FILE__) + '/database.yml' ) ) ActiveRecord::Base.establish_connection( 'test' ) ActiveRecord::Schema.define :version => 1 do create_table "users", :force => true do |t| t.string "name", :limit => 50 t.string "raw_home_phone", :limit => 35 t.string "raw_mobile_phone", :limit => 35 end end class User < ActiveRecord::Base phone_number :home_phone, :mobile_phone end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phone_number-1.3.0 | spec/spec_helper.rb |
phone_number-1.2.0 | spec/spec_helper.rb |
phone_number-1.1.0 | spec/spec_helper.rb |
phone_number-1.0.0 | spec/spec_helper.rb |