deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Tests: Run DB migrations for in-memory database
Date Tue, 19 Feb 2013 10:59:40 GMT
Updated Branches:
  refs/heads/master fb2916a45 -> ce3bad216


Tests: Run DB migrations for in-memory database


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/ce3bad21
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/ce3bad21
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/ce3bad21

Branch: refs/heads/master
Commit: ce3bad216e6560794243557552c37dfcc332813c
Parents: fb2916a
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Feb 19 11:58:55 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Feb 19 11:58:55 2013 +0100

----------------------------------------------------------------------
 server/tests/cimi/db/db_helper.rb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/ce3bad21/server/tests/cimi/db/db_helper.rb
----------------------------------------------------------------------
diff --git a/server/tests/cimi/db/db_helper.rb b/server/tests/cimi/db/db_helper.rb
index b6a7c73..84498ec 100644
--- a/server/tests/cimi/db/db_helper.rb
+++ b/server/tests/cimi/db/db_helper.rb
@@ -8,8 +8,12 @@ else
 end
 
 ENV['RACK_ENV'] = 'development'
+ENV['DB_UPGRADE'] = 'true'
 
-require_relative '../../../lib/db'
+require_relative '../../../lib/initializers/database_initialize'
+
+# Apply database migrations:
+Sequel::Migrator.apply(DATABASE, DATABASE_MIGRATIONS_DIR)
 
 module Deltacloud
   module DatabaseTestHelper


Mime
View raw message