Sha256: a6c2be83b47a4729d961c2fb9be6cc1345edb92dd68f3c8ee1567800aa87a3f4
Contents?: true
Size: 533 Bytes
Versions: 9
Compression:
Stored size: 533 Bytes
Contents
require 'test_helper' require 'whois/answer/parser/blank' class AnswerParserBlankTest < Test::Unit::TestCase def setup @klass = Whois::Answer::Parser::Blank @part = Whois::Answer::Part.new("This is the response.", "whois.foo.com") end Whois::Answer::Parser::PROPERTIES.each do |method| define_method "test_#{method}_should_raise" do parser = @klass.new(@part) error = assert_raise(Whois::ParserNotFound) { parser.send(method) } assert_match "whois.foo.com", error.message end end end
Version data entries
9 entries across 9 versions & 1 rubygems