Sha256: 957b31544b4895bfea4f298a395a845b18f8d7db13345ab5586cf00e50124782
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples 'Subjects' do context 'AAF shared implementation' do subject { build :subject } it { is_expected.to be_valid } it { is_expected.to be_an(Accession::Principal) } it { is_expected.to respond_to(:roles) } it { is_expected.to respond_to(:permissions) } it { is_expected.to respond_to(:permits?) } it { is_expected.to respond_to(:functioning?) } it 'is invalid without a name' do subject.name = nil expect(subject).not_to be_valid end it 'is invalid without an enabled state' do subject.enabled = nil expect(subject).not_to be_valid end it 'is invalid without a complete state' do subject.complete = nil expect(subject).not_to be_valid end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aaf-gumboot-2.6.3 | lib/gumboot/shared_examples/subjects.rb |
aaf-gumboot-2.6.2 | lib/gumboot/shared_examples/subjects.rb |
aaf-gumboot-2.6.1 | lib/gumboot/shared_examples/subjects.rb |