Sha256: 861f5d9e32b697b786174c6070eadd7a1355b2fdcfbd61709b0c0af628d38dcb

Contents?: true

Size: 424 Bytes

Versions: 28

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'
require 'cancan/matchers'

describe 'User Abilities' do
  subject { ability }
  let(:ability) { Ability.new(current_user) }
  let(:user) { create(:user) }
  let(:current_user) { user }
  let(:admin_set) { create(:admin_set, edit_users: [user]) }

  it "allows the edit_users to edit and read" do
    is_expected.to be_able_to(:read, admin_set)
    is_expected.to be_able_to(:edit, admin_set)
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
hyrax-1.1.1 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.1.0 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.5 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.8 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.4 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.3 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.2 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.1 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.0.rc2 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.7 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-2.0.0 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-2.0.0.rc2 spec/abilities/admin_set_abilities_spec.rb
hyrax-1.0.0.rc1 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.6 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.5 spec/abilities/admin_set_abilities_spec.rb
test_hyrax-0.0.1.alpha spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.4 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.3 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.2 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-2.0.0.rc1 spec/abilities/admin_set_abilities_spec.rb