diff options
| author | Alban Peignier | 2018-01-10 21:34:47 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-10 21:34:47 +0100 |
| commit | cd14af8a507eb927f5e10675c3069a820f99fb9c (patch) | |
| tree | c64edd02cd025c7847e1c1e301b83f58c59f3414 /spec/policies/referential_policy_spec.rb | |
| parent | 17a3d2437a4eb60ec4046137fb37d7b433dc48aa (diff) | |
| parent | 5ab41aaf9978abe89faf3c11dafa8c3c372f7cfb (diff) | |
| download | chouette-core-cd14af8a507eb927f5e10675c3069a820f99fb9c.tar.bz2 | |
Merge pull request #204 from af83/5413-read_only_policy_for_finalised_refs
Read only policy for referentials in suite. Refs #5413
Diffstat (limited to 'spec/policies/referential_policy_spec.rb')
| -rw-r--r-- | spec/policies/referential_policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/policies/referential_policy_spec.rb b/spec/policies/referential_policy_spec.rb index d00415fc6..8540d3ce9 100644 --- a/spec/policies/referential_policy_spec.rb +++ b/spec/policies/referential_policy_spec.rb @@ -32,13 +32,13 @@ RSpec.describe ReferentialPolicy, type: :policy do # --------------------------------------- permissions :destroy? do - it_behaves_like 'permitted policy and same organisation', 'referentials.destroy', archived: true + it_behaves_like 'permitted policy and same organisation', 'referentials.destroy', archived_and_finalised: true end permissions :edit? do - it_behaves_like 'permitted policy and same organisation', 'referentials.update', archived: true + it_behaves_like 'permitted policy and same organisation', 'referentials.update', archived_and_finalised: true end permissions :update? do - it_behaves_like 'permitted policy and same organisation', 'referentials.update', archived: true + it_behaves_like 'permitted policy and same organisation', 'referentials.update', archived_and_finalised: true end # @@ -46,7 +46,7 @@ RSpec.describe ReferentialPolicy, type: :policy do # ------------------ permissions :clone? do - it_behaves_like 'permitted policy', 'referentials.create', archived: true + it_behaves_like 'permitted policy', 'referentials.create', archived_and_finalised: true end permissions :archive? do |
