Sha256: b267de15e84a9a25bede56724f0db28268e28f640c107165c1c2a9801dde2752
Contents?: true
Size: 888 Bytes
Versions: 4
Compression:
Stored size: 888 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'sqlite3' require 'active_record' require 'mailee' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| end db = "mailee-api-test.db" File.unlink(db) rescue nil SQLite3::Database.new(db) ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => db) ActiveRecord::Base.connection.create_table(:foos) do |t| t.column :email, :string t.column :name, :string t.column :news, :boolean end ActiveRecord::Base.connection.create_table(:bars) do |t| t.column :other_email, :string t.column :other_name, :string t.column :other_news, :boolean end class Foo < ActiveRecord::Base sync_with_mailee end class Bar < ActiveRecord::Base sync_with_mailee :email => :other_email, :name => :other_name, :news => :other_news end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mailee-0.4.3 | spec/ar_spec_helper.rb |
mailee-0.4.2 | spec/ar_spec_helper.rb |
mailee-0.3.0 | spec/ar_spec_helper.rb |
mailee-0.2.1 | spec/ar_spec_helper.rb |