From 890346ab671b679fb214f0ae78ca897cf54b9a74 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 4 Feb 2014 09:49:05 +0100 Subject: set db name correctly in tests and test it --- test/integration/tapicero_test.rb | 1 + test/test_helper.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/tapicero_test.rb b/test/integration/tapicero_test.rb index d436e6d..d32415c 100644 --- a/test/integration/tapicero_test.rb +++ b/test/integration/tapicero_test.rb @@ -9,6 +9,7 @@ class TapiceroTest < MiniTest::Unit::TestCase def test_database_exists assert database + assert_equal "tapicero_test_users", database.name end def test_creates_user_db_fast diff --git a/test/test_helper.rb b/test/test_helper.rb index 227cde5..4a9ca6b 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,5 +6,6 @@ $:.unshift File.expand_path('lib', BASE_DIR) require 'mocha/setup' -TAPICERO_CONFIG = "test/config.yaml" +require 'tapicero/version' +Tapicero::CONFIGS << "test/config.yaml" require 'tapicero' -- cgit v1.2.3