зеркало из https://github.com/github/memcached.git
Use minitest instead of test-unit
This commit is contained in:
Родитель
af83d077b0
Коммит
bfc2da3a0b
2
Gemfile
2
Gemfile
|
@ -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
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче