aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_remote_fetcher.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 01:23:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-07 01:23:07 +0000
commit298258891d2f8a80f8d1eac193c6609a256a3cf0 (patch)
tree0c7bac8b88d9d2b57e3aa9635f6839a8e97b1b35 /test/rubygems/test_gem_remote_fetcher.rb
parentb5ba059a0b21ba6a198d8dca864045c37ce3babb (diff)
downloadruby-298258891d2f8a80f8d1eac193c6609a256a3cf0.tar.gz
use assert_equal, assert_match, and so on.
* test/fileutils/fileasserts.rb: use assert_equal, assert_match, and so on. * test/ruby/enc/test_utf16.rb, test/ruby/enc/test_utf32.rb, test/ruby/test_io_m17n.rb (assert_str_equal): ditto. * test/rubygems/test_gem_remote_fetcher.rb (assert_data_from_{server,proxy}): ditto. * test/test_pstore.rb (test_thread_safe): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_remote_fetcher.rb')
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index 2c8769c1c1..495c28727c 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -818,11 +818,11 @@ gems:
end
def assert_data_from_server(data)
- assert_block("Data is not from server") { data =~ /0\.4\.11/ }
+ assert_match(/0\.4\.11/, data, "Data is not from server")
end
def assert_data_from_proxy(data)
- assert_block("Data is not from proxy") { data =~ /0\.4\.2/ }
+ assert_match(/0\.4\.2/, data, "Data is not from proxy")
end
class Conn