Permalink
Browse files

Updated require statements in test files for test-unit.

  • Loading branch information...
1 parent d8b21fe commit ef58c3ad5c05465c573066ba28abce6071a0b28c @djberg96 committed Jan 24, 2013
@@ -4,10 +4,7 @@
# Test case for the Net::PingExternal class. Run this via the 'test' or
# 'test:external' rake task.
#########################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/external'
class TC_Net_Ping_External < Test::Unit::TestCase
@@ -5,10 +5,7 @@
# with root privileges on UNIX systems. This should be run via the
# 'test' or 'test:icmp' Rake task.
#######################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/icmp'
include Net
@@ -4,10 +4,7 @@
# Test case for the Net::PingHTTP class. This should be run via the 'test' or
# 'test:http' Rake task.
#################################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/ldap'
require 'fakeldap'
@@ -4,10 +4,7 @@
# Test case for the Net::PingTCP class. This test should be run via
# the 'test' or 'test:tcp' Rake task.
#####################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/tcp'
include Net
@@ -7,10 +7,7 @@
# If someone could provide me a host where a udp ping actually
# works (with a service check), I would appreciate it. :)
########################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/udp'
class TC_Net_Ping_UDP < Test::Unit::TestCase
@@ -5,10 +5,7 @@
# run MS Windows. You should run this test via the 'test' or
# 'test:wmi' Rake task.
#######################################################################
-require 'rubygems'
-gem 'test-unit'
-
-require 'test/unit'
+require 'test-unit'
require 'net/ping/wmi'
include Net

0 comments on commit ef58c3a

Please sign in to comment.