test/storage/couchdb_test.rb in vines-0.1.0 vs test/storage/couchdb_test.rb in vines-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
# encoding: UTF-8
require 'storage_tests'
require 'vines'
-require 'test/unit'
+require 'minitest/autorun'
-class CouchDBTest < Test::Unit::TestCase
+class CouchDBTest < MiniTest::Unit::TestCase
include StorageTests
URL = 'http://localhost:5984/xmpp_testcase'.freeze
def setup
@@ -86,17 +86,16 @@
end
end
def test_init
EMLoop.new do
- assert_raise(RuntimeError) { Vines::Storage::CouchDB.new {} }
- assert_raise(RuntimeError) { Vines::Storage::CouchDB.new { host 'localhost' } }
- assert_nothing_raised do
- Vines::Storage::CouchDB.new do
- host 'localhost'
- port '5984'
- database 'test'
- end
+ assert_raises(RuntimeError) { Vines::Storage::CouchDB.new {} }
+ assert_raises(RuntimeError) { Vines::Storage::CouchDB.new { host 'localhost' } }
+ # shouldn't raise an error
+ Vines::Storage::CouchDB.new do
+ host 'localhost'
+ port '5984'
+ database 'test'
end
end
end
end