Sha256: b1d58e70b8e06afaa82c31aaa2bc8973aaf4e65abfea67dc0194bf58fbe444e0

Contents?: true

Size: 532 Bytes

Versions: 17

Compression:

Stored size: 532 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

17 entries across 17 versions & 1 rubygems

Version Path
whois-1.1.2 test/answer/parser/blank_test.rb
whois-1.1.1 test/answer/parser/blank_test.rb
whois-1.1.0 test/answer/parser/blank_test.rb
whois-1.0.12 test/answer/parser/blank_test.rb
whois-1.0.11 test/answer/parser/blank_test.rb
whois-1.0.10 test/answer/parser/blank_test.rb
whois-1.0.9 test/answer/parser/blank_test.rb
whois-1.0.8 test/answer/parser/blank_test.rb
whois-1.0.7 test/answer/parser/blank_test.rb
whois-1.0.6 test/answer/parser/blank_test.rb
whois-1.0.5 test/answer/parser/blank_test.rb
whois-1.0.4 test/answer/parser/blank_test.rb
whois-1.0.3 test/answer/parser/blank_test.rb
whois-1.0.2 test/answer/parser/blank_test.rb
whois-1.0.1 test/answer/parser/blank_test.rb
whois-1.0.0 test/answer/parser/blank_test.rb
whois-0.9.0 test/answer/parser/blank_test.rb