You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/02/19 11:59:40 UTC
git commit: Tests: Run DB migrations for in-memory database
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 <mf...@redhat.com>
Authored: Tue Feb 19 11:58:55 2013 +0100
Committer: Michal fojtik <mf...@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