Sha256: 9e5db9e88650c7b85eb539fb9ac83373abe630a9ae8aca9e8a7720b465c5bf59

Contents?: true

Size: 445 Bytes

Versions: 17

Compression:

Stored size: 445 Bytes

Contents

RSpec.shared_examples 'a Hydra group_service interface' do
  before do
    raise 'adapter must be set with `let(:group_service)`' unless
      defined? group_service
  end

  subject { group_service }

  it { is_expected.to respond_to(:role_names).with(0).arguments }

  describe '#fetch_groups' do
    it 'requires a user: keyword arg' do
      expect(group_service.method(:fetch_groups).parameters).to eq([[:keyreq, :user]])
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hydra-access-controls-13.0.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-12.1.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-12.0.2 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.7 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-12.0.1 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.6 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-12.0.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.1 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.0.rc2 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.7.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.6.2 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.6.1 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.6.0 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.5.1 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-11.0.0.rc1 lib/hydra/shared_spec/group_service_interface.rb
hydra-access-controls-10.5.0 lib/hydra/shared_spec/group_service_interface.rb