Skip to content
Permalink
Browse files

Update test suite to Minitest 5

  • Loading branch information...
Josef Stribny
Josef Stribny committed Mar 21, 2014
1 parent 6266f3b commit a1017ce59eeb8bfb5256b6e7789d957ac4efc227
Showing with 11 additions and 11 deletions.
  1. +2 −2 test/test_ares.rb
  2. +2 −2 test/test_ares_address.rb
  3. +2 −2 test/test_ares_http.rb
  4. +3 −3 test/test_ares_parser.rb
  5. +2 −2 test/test_ares_subject.rb
@@ -1,10 +1,10 @@
# encoding: UTF-8

require 'test/unit'
require 'minitest/autorun'
require 'helper'
require 'ruby-ares'

class RubyARESTest < Test::Unit::TestCase
class RubyARESTest < Minitest::Test
def setup
@subject = RubyARES::Parser.get_subject RubyARESTestHelper.subject_xml
end
@@ -1,9 +1,9 @@
# encoding: UTF-8

require 'test/unit'
require 'minitest/autorun'
require 'ruby-ares/address'

class RubyARESAddressTest < Test::Unit::TestCase
class RubyARESAddressTest < Minitest::Test

def setup
@address = RubyARES::Address.new(1, 'Kunzova', '10010', 'Brno', 'Královo pole', 1, 1, nil)
@@ -1,8 +1,8 @@
# encoding: UTF-8

require 'test/unit'
require 'minitest/autorun'
require 'ruby-ares/http'

class RubyARESHTTPTest < Test::Unit::TestCase
class RubyARESHTTPTest < Minitest::Test

end
@@ -1,13 +1,13 @@
# encoding: UTF-8

require 'test/unit'
require 'minitest/autorun'
require 'helper'
require 'ruby-ares/parser'

class RubyARESParserTest < Test::Unit::TestCase
class RubyARESParserTest < Minitest::Test

def test_parser_should_fail
assert_raise(RubyARES::Parser::ARESDatabaseError) {
assert_raises(RubyARES::Parser::ARESDatabaseError) {
RubyARES::Parser.get_subject(RubyARESTestHelper.error_responce_xml)
}
end
@@ -1,8 +1,8 @@
# encoding: UTF-8

require 'test/unit'
require 'minitest/autorun'
require 'ruby-ares/subject'

class RubyARESSubjectTest < Test::Unit::TestCase
class RubyARESSubjectTest < Minitest::Test

end

0 comments on commit a1017ce

Please sign in to comment.
You can’t perform that action at this time.