Sha256: 69f1f5cb8949cd5b30eee82e156ec8e665f10435d37dc828cbe4f1eff93a5c73

Contents?: true

Size: 354 Bytes

Versions: 43

Compression:

Stored size: 354 Bytes

Contents

require 'spec_helper'
require 'cancan/matchers'

describe CurationConcerns::Ability, type: :model do
  describe "a registered user" do
    let(:user) { create(:user) }
    subject { Ability.new(user) }
    it { is_expected.to be_able_to(:read, build(:operation, user: user)) }
    it { is_expected.not_to be_able_to(:read, build(:operation)) }
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.7 spec/abilities/operation_ability_spec.rb
curation_concerns-2.0.0 spec/abilities/operation_ability_spec.rb
curation_concerns-2.0.0.rc2 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.6 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.5 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.4 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.3 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.2 spec/abilities/operation_ability_spec.rb
curation_concerns-2.0.0.rc1 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.1 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.0 spec/abilities/operation_ability_spec.rb
curation_concerns-1.7.0.beta1 spec/abilities/operation_ability_spec.rb
curation_concerns-1.6.3 spec/abilities/operation_ability_spec.rb
curation_concerns-1.6.2 spec/abilities/operation_ability_spec.rb
curation_concerns-1.6.1 spec/abilities/operation_ability_spec.rb
curation_concerns-1.6.0 spec/abilities/operation_ability_spec.rb
curation_concerns-1.5.0 spec/abilities/operation_ability_spec.rb
curation_concerns-1.4.0 spec/abilities/operation_ability_spec.rb
curation_concerns-1.3.3 spec/abilities/operation_ability_spec.rb