Sha256: f0e62c538fbd9221766a354f53d127a7f5bca5047f6b5be842c467429b95bdc1
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Whois::WebInterfaceError do describe "#initialize" do it "sets the URL" do expect(described_class.new("http://example.com").url).to eq("http://example.com") end it "requires the URL argument" do expect do described_class.new end.to raise_error(ArgumentError) end end describe "#message" do it "interpolates the URL" do expect(described_class.new("http://example.com").message).to match(%r{http://example.com}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems