Sha256: 85ded9954024df8a0c55066ae127406504d286b2f9d0d55c98b23ddd2d4a5ef1
Contents?: true
Size: 895 Bytes
Versions: 8
Compression:
Stored size: 895 Bytes
Contents
require 'spec_helper' describe Qa::Authorities::Getty do describe "#new" do it "raises an exception" do expect { described_class.new }.to raise_error RuntimeError, "Initializing with as sub authority is removed. use Module.subauthority_for(nil) instead" end end describe "#subauthority_for" do context "without a sub-authority" do it "raises an exception" do expect { described_class.subauthority_for }.to raise_error ArgumentError end end context "with an invalid sub-authority" do it "raises an exception" do expect { described_class.subauthority_for("foo") }.to raise_error Qa::InvalidSubAuthority end end context "with a valid sub-authority" do it "creates the authority" do expect(described_class.subauthority_for("aat")).to be_kind_of Qa::Authorities::Getty::AAT end end end end
Version data entries
8 entries across 8 versions & 1 rubygems