Use minitest instead of test-unit

This commit is contained in:
Arthur Neves 2016-03-04 17:41:24 -05:00
Родитель af83d077b0
Коммит bfc2da3a0b
5 изменённых файлов: 10 добавлений и 14 удалений

Просмотреть файл

@ -1,8 +1,6 @@
source 'https://rubygems.org'
gemspec
gem 'test-unit'
group :benchmark do
gem "remix-stash", '~> 1.1.3'
gem "dalli"

Просмотреть файл

@ -13,16 +13,14 @@ GEM
i18n (0.6.0)
memcache-client (1.8.5)
metaclass (0.0.4)
minitest (5.3.3)
mocha (1.0.0)
metaclass (~> 0.0.1)
multi_json (1.3.6)
power_assert (0.2.7)
rake (0.9.2.2)
rake-compiler (0.9.5)
rake
remix-stash (1.1.3)
test-unit (3.1.5)
power_assert
PLATFORMS
ruby
@ -32,11 +30,11 @@ DEPENDENCIES
dalli
memcache-client
memcached!
minitest
mocha
rake
rake-compiler
remix-stash (~> 1.1.3)
test-unit
BUNDLED WITH
1.10.6

Просмотреть файл

@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.licenses = ["Academic Free License 3.0 (AFL-3.0)"]
s.add_development_dependency 'rake'
s.add_development_dependency 'minitest'
s.add_development_dependency 'mocha'
s.add_development_dependency 'activesupport'
s.add_development_dependency "rake-compiler"

Просмотреть файл

@ -1,7 +1,6 @@
require 'memcached'
require 'test/unit'
require 'test/unit/assertions'
require 'mocha/test_unit'
require "minitest/autorun"
require 'mocha/mini_test'
#require_relative 'setup'

Просмотреть файл

@ -1,6 +1,6 @@
require 'test_helper'
class ClientInitializeTest < Test::Unit::TestCase
class ClientInitializeTest < Minitest::Test
def setup
@servers = ['localhost:43042', 'localhost:43043']
@ -84,9 +84,9 @@ class ClientInitializeTest < Test::Unit::TestCase
# end
def test_initialize_with_invalid_server_strings
assert_raise(ArgumentError) { Memcached::Client.new ":43042" }
assert_raise(ArgumentError) { Memcached::Client.new "localhost:memcached" }
assert_raise(ArgumentError) { Memcached::Client.new "local host:43043:1" }
assert_raises(ArgumentError) { Memcached::Client.new ":43042" }
assert_raises(ArgumentError) { Memcached::Client.new "localhost:memcached" }
assert_raises(ArgumentError) { Memcached::Client.new "local host:43043:1" }
end
# def test_initialize_with_invalid_options
@ -184,7 +184,7 @@ class ClientInitializeTest < Test::Unit::TestCase
# end
def test_initialize_strange_argument
assert_raise(ArgumentError) { Memcached::Client.new 1 }
assert_raises(ArgumentError) { Memcached::Client.new 1 }
end