Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.48 kb
require 'spec_helper'
describe Whois::WebInterfaceError do
describe "#initialize" do
it "sets the URL" do
klass.new("http://example.com").url.should == "http://example.com"
end
it "requires the URL argument" do
expect {
klass.new
}.to raise_error(ArgumentError)
end
end
describe "#message" do
it "interpolates the URL" do
klass.new("http://example.com").message.should match(%r{http://example.com})
end
end
end
Jump to Line
Something went wrong with that request. Please try again.