Sha256: c585d41e2920c600d2170734799c4c3b9710c33886b5f947c41e3892b12e9e79

Contents?: true

Size: 588 Bytes

Versions: 18

Compression:

Stored size: 588 Bytes

Contents

require "spec_helper"

describe Whois::Server::Adapters::Web do

  before(:each) do
    @definition = [:tld, ".test", nil, { :web => "http://whois.test" }]
  end


  describe "#query" do
    it "raises Whois::WebInterfaceError" do
      lambda do
        klass.new(*@definition).query("example.test")
      end.should raise_error(Whois::WebInterfaceError)
    end

    it "customizes the error message with the WHOIS web url" do
      lambda do
        klass.new(*@definition).query("example.test")
      end.should raise_error(Whois::WebInterfaceError, /whois\.test/)
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
whois-2.6.3 spec/whois/server/adapters/web_spec.rb
whois-2.6.2 spec/whois/server/adapters/web_spec.rb
whois-2.6.1 spec/whois/server/adapters/web_spec.rb
whois-2.6.0 spec/whois/server/adapters/web_spec.rb
whois-2.5.1 spec/whois/server/adapters/web_spec.rb
whois-2.5.0 spec/whois/server/adapters/web_spec.rb
whois-2.4.0 spec/whois/server/adapters/web_spec.rb
whois-2.3.0 spec/whois/server/adapters/web_spec.rb
whois-2.2.0 spec/whois/server/adapters/web_spec.rb
whois-2.1.0 spec/whois/server/adapters/web_spec.rb
whois-2.0.7 spec/whois/server/adapters/web_spec.rb
whois-2.0.6 spec/whois/server/adapters/web_spec.rb
whois-2.0.5 spec/whois/server/adapters/web_spec.rb
whois-2.0.4 spec/whois/server/adapters/web_spec.rb
whois-2.0.3 spec/whois/server/adapters/web_spec.rb
whois-2.0.2 spec/whois/server/adapters/web_spec.rb
whois-2.0.1 spec/whois/server/adapters/web_spec.rb
whois-2.0.0 spec/whois/server/adapters/web_spec.rb