spec/spec_helper.rb in standby-4.0.0 vs spec/spec_helper.rb in standby-5.0.0

- old
+ new

@@ -4,22 +4,23 @@ ENV['RACK_ENV'] = 'test' require 'standby' ActiveRecord::Base.configurations = { - 'test' => { 'adapter' => 'sqlite3', 'database' => 'test_db' }, - 'test_standby' => { 'adapter' => 'sqlite3', 'database' => 'test_standby_one' }, - 'test_standby_two' => { 'adapter' => 'sqlite3', 'database' => 'test_standby_two'}, + 'test' => { 'adapter' => 'sqlite3', 'database' => 'spec/db/test_db' }, + 'test_standby' => { 'adapter' => 'sqlite3', 'database' => 'spec/db/test_standby_one' }, + 'test_standby_two' => { 'adapter' => 'sqlite3', 'database' => 'spec/db/test_standby_two'}, 'test_standby_url' => 'postgres://root:@localhost:5432/test_standby' } # Prepare databases class User < ActiveRecord::Base has_many :items + attr_accessor :name end class Item < ActiveRecord::Base - belongs_to :user + belongs_to :user, inverse_of: :items end class Seeder def run # Populate on primary