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
curation_concerns-1.7.1 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.0 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.7.0.beta1 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.6.3 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.6.2 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.6.1 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.6.0 spec/abilities/admin_set_abilities_spec.rb
curation_concerns-1.5.0 spec/abilities/admin_set_abilities_spec.rb