Sha256: 8ac3c3dc890bfbf31079e8d6293e8e3fcabfe8cf8661d2fa215f000ffaf0dd60
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'active_record' require 'i18n_column' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') def setup_db ActiveRecord::Schema.define(:version => 1) do create_table(:nodes) do |t| t.text(:name) end end end def teardown_db ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Base.connection.drop_table(table) end end class Node < ActiveRecord::Base i18n_column(:name) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
i18n_column-0.0.2 | spec/spec_helper.rb |
i18n_column-0.0.1 | spec/spec_helper.rb |