summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-02-04 09:49:05 +0100
committerAzul <azul@riseup.net>2014-02-04 11:46:57 +0100
commit890346ab671b679fb214f0ae78ca897cf54b9a74 (patch)
treed82e8b940ecc62e7822a8bfee464b3a4a77c9088
parent5d3cf83abf9123af67b3965dea7ad12022d66c3f (diff)
set db name correctly in tests and test it
-rw-r--r--test/integration/tapicero_test.rb1
-rw-r--r--test/test_helper.rb3
2 files changed, 3 insertions, 1 deletions
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'