Sha256: 4dc93a2a4ae1661d71a58f721fdf4ff22364c0eaa012dbb1d3ef3e0ea267dcc4
Contents?: true
Size: 920 Bytes
Versions: 4
Compression:
Stored size: 920 Bytes
Contents
require 'spec_helper' describe Qa::Authorities::Getty do describe "#new" do it "should raise 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 "should raise an exception" do expect { described_class.subauthority_for }.to raise_error ArgumentError end end context "with an invalid sub-authority" do it "should raise an exception" do expect { described_class.subauthority_for("foo") }.to raise_error Qa::InvalidSubAuthority end end context "with a valid sub-authority" do it "should create the authority" do expect(described_class.subauthority_for("aat")).to be_kind_of Qa::Authorities::Getty::AAT end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qa-0.10.1 | spec/lib/authorities/getty_spec.rb |
qa-0.10.0 | spec/lib/authorities/getty_spec.rb |
qa-0.9.0 | spec/lib/authorities/getty_spec.rb |
qa-0.8.0 | spec/lib/authorities/getty_spec.rb |