Browse files

* 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
  • Loading branch information...
1 parent c84e529 commit b16fc578520875842d91b1245cadf93ad8df516e @nobu nobu committed Feb 13, 2011
Showing with 9 additions and 3 deletions.
  1. +7 −1 ChangeLog
  2. +1 −1 test/syck/test_string.rb
  3. +1 −1 test/test_prime.rb
View
8 ChangeLog
@@ -1,4 +1,10 @@
-Sun Feb 13 09:56:32 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 13 09:56:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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.
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
catch IOError when server socket was closed.
View
2 test/syck/test_string.rb
@@ -20,7 +20,7 @@ def test_binary_string
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
View
2 test/test_prime.rb
@@ -169,6 +169,6 @@ class << sieve
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

0 comments on commit b16fc57

Please sign in to comment.