summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-13 00:56:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-13 00:56:44 +0000
commitb16fc578520875842d91b1245cadf93ad8df516e (patch)
treed7f53805704d3361b95f6e6f7ebcfbd284219c5a /test
parentc84e52921968ddcca88ad58ab2d8bdc69c3e45ab (diff)
* test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
use assert_not instead of refute, unless required minitest directly. * test/test_prime.rb (TestPrime::sieve.Integer): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/syck/test_string.rb2
-rw-r--r--test/test_prime.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/syck/test_string.rb b/test/syck/test_string.rb
index 3bac75964f..adea4c51ce 100644
--- a/test/syck/test_string.rb
+++ b/test/syck/test_string.rb
@@ -20,7 +20,7 @@ module Syck
def test_non_binary_string
string = binary_string(0.29)
yml = YAML.dump string
- refute_match(/binary/, yml)
+ assert_not_match(/binary/, yml)
assert_equal string, YAML.load(yml)
end
diff --git a/test/test_prime.rb b/test/test_prime.rb
index 3dd1b89b2f..4e4fa37509 100644
--- a/test/test_prime.rb
+++ b/test/test_prime.rb
@@ -169,6 +169,6 @@ class TestPrime < Test::Unit::TestCase
end
end
- refute_includes Prime.each(7*37).to_a, 7*37, "[ruby-dev:39465]"
+ assert_not_include Prime.each(7*37).to_a, 7*37, "[ruby-dev:39465]"
end
end