Sha256: eee5c48d3b44c6af49ea8c130a56119ce2f663d984f9fa6d57f3756d8bc277fa
Contents?: true
Size: 911 Bytes
Versions: 37
Compression:
Stored size: 911 Bytes
Contents
require 'spec_helper' describe Qa::Authorities::Getty do describe "#new" do it "raises an exception" do msg = "Initializing with as sub authority is removed. use Module.subauthority_for(nil) instead" expect { described_class.new }.to raise_error RuntimeError, msg 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
37 entries across 37 versions & 1 rubygems