Sha256: 2dc922077fc1db043b3c5d7a46bfd453247100989a07f903fe40ca96ab52d3ce

Contents?: true

Size: 440 Bytes

Versions: 15

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples 'Roles' do
  context 'AAF shared implementation' do
    subject { build :role }

    it { is_expected.to be_valid }
    it { is_expected.to respond_to(:api_subjects) }
    it { is_expected.to respond_to(:subjects) }
    it { is_expected.to respond_to(:permissions) }

    it 'is invalid without a name' do
      subject.name = nil
      expect(subject).not_to be_valid
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
aaf-gumboot-2.6.3 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.6.2 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.6.1 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.6.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.5.1 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.5.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.4.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.2.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.1.4 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.1.3 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.1.1 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.1.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-2.0.1 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-1.2.0 lib/gumboot/shared_examples/roles.rb
aaf-gumboot-1.1.0 lib/gumboot/shared_examples/roles.rb