Skip to content

Commit

Permalink
tests: switch to minitest
Browse files Browse the repository at this point in the history
Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5,
the shim no longer supports Test::Unit::TestCase.

Adjust the geoip test suite to support Minitest 5's syntax.
  • Loading branch information
ktdreyer committed Apr 3, 2014
1 parent 806f413 commit 510b7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_geoip.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/test_helper.rb'

class TestGeoip < Test::Unit::TestCase
class TestGeoip < Minitest::Test

def setup
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require 'stringio'
require 'test/unit'
require 'minitest/autorun'
require File.dirname(__FILE__) + '/../lib/geoip'

0 comments on commit 510b7fc

Please sign in to comment.