Sha256: cb966a0d6c2701af07abe9b1e7b89f1c79dee917777bf4ea63f6162d59fc5a52
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 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.registrable_methods.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whois-0.8.1 | test/answer/parser/blank_test.rb |
whois-0.8.0 | test/answer/parser/blank_test.rb |