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

Version Path
whois-1.2.2 test/whois/answer/parser/blank_test.rb
whois-1.2.1 test/whois/answer/parser/blank_test.rb
whois-1.2.0 test/whois/answer/parser/blank_test.rb
whois-1.1.8 test/answer/parser/blank_test.rb
whois-1.1.7 test/answer/parser/blank_test.rb
whois-1.1.6 test/answer/parser/blank_test.rb
whois-1.1.5 test/answer/parser/blank_test.rb
whois-1.1.4 test/answer/parser/blank_test.rb
whois-1.1.3 test/answer/parser/blank_test.rb