Sha256: 57e9af71378b9546fddc26d13a7781a661cf29fac1a9cfc835f5d91c390fd35d

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'
require 'whois/record/parser/blank'

describe Whois::Record::Parser::Blank do

  before(:each) do
    @part = Whois::Record::Part.new(:body => "This is the response.", :host => "whois.example.test")
  end

  Whois::Record::Parser::PROPERTIES.each do |method|
    describe method do
      it "raises Whois::ParserNotFound" do
        lambda do
          klass.new(@part).send(method)
        end.should raise_error(Whois::ParserNotFound, /whois.example.test/)
      end
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whois-2.6.3 spec/whois/record/parser/blank_spec.rb
whois-2.6.2 spec/whois/record/parser/blank_spec.rb
whois-2.6.1 spec/whois/record/parser/blank_spec.rb
whois-2.6.0 spec/whois/record/parser/blank_spec.rb