diff options
| author | Zog | 2018-04-29 10:37:27 +0200 |
|---|---|---|
| committer | Zog | 2018-04-29 10:37:27 +0200 |
| commit | 9a267ace748f21deb5d27695dc28f4659fa033fd (patch) | |
| tree | 4c467cffda98cab00ba2747d39def083da99b492 /spec | |
| parent | c119b6be487e0c272253353b8fdb20ed3b010b16 (diff) | |
| download | chouette-core-9a267ace748f21deb5d27695dc28f4659fa033fd.tar.bz2 | |
Fix specs
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/support/pundit/shared_examples.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/support/pundit/shared_examples.rb b/spec/support/pundit/shared_examples.rb index 8592ef29f..0ac1d3503 100644 --- a/spec/support/pundit/shared_examples.rb +++ b/spec/support/pundit/shared_examples.rb @@ -111,10 +111,8 @@ RSpec.shared_examples 'permitted policy and same organisation' do if archived_and_finalised it 'removes the permission for archived referentials' do user.organisation_id = referential.organisation_id - record.archived_at = 42.seconds.ago - record.ready = true - expect(record).to be_archived - expect(record).to be_referential_read_only + referential.archived_at = 42.seconds.ago + referential.ready = true expect_it.not_to permit(user_context, record) end |
