spec/unit/migrator_spec.rb in apartment-0.14.4 vs spec/unit/migrator_spec.rb in apartment-0.15.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe Apartment::Migrator do
let(:config){ Apartment::Test.config['connections']['postgresql'].symbolize_keys }
- let(:schema_name){ 'some_db_schema' }
+ let(:schema_name){ Apartment::Test.next_db }
let(:version){ 20110613152810 } # note this is brittle! I've literally just taken the version of the one migration I made... don't change this version
before do
ActiveRecord::Base.establish_connection config
Apartment::Database.stub(:config).and_return config # Use postgresql config for this test
\ No newline at end of file