diff options
| author | Teddy Wing | 2017-11-09 11:20:03 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-13 17:52:54 +0100 |
| commit | ef0cf7baac830d56dfcc52aaba9467a21856c51a (patch) | |
| tree | 25f645e64ff35208fc4e660fc1879b7156ebf18a /spec/models | |
| parent | fb0e5a43f77e9a150956851df63820f463f813a4 (diff) | |
| download | chouette-core-ef0cf7baac830d56dfcc52aaba9467a21856c51a.tar.bz2 | |
ComplianceCheckSet#update_status: Reverse test data order
Move the successful `ComplianceCheckResource`s to the end so that these
tests fail if we don't wait until the end of a loop through the resoures
before updating the status to 'successful'.
Refs #4757
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/compliance_check_set_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/compliance_check_set_spec.rb b/spec/models/compliance_check_set_spec.rb index b00a97636..92b052b53 100644 --- a/spec/models/compliance_check_set_spec.rb +++ b/spec/models/compliance_check_set_spec.rb @@ -33,12 +33,12 @@ RSpec.describe ComplianceCheckSet, type: :model do create( :compliance_check_resource, compliance_check_set: check_set, - status: 'OK' + status: 'ERROR' ) create( :compliance_check_resource, compliance_check_set: check_set, - status: 'ERROR' + status: 'OK' ) check_set.update_status @@ -51,12 +51,12 @@ RSpec.describe ComplianceCheckSet, type: :model do create( :compliance_check_resource, compliance_check_set: check_set, - status: 'OK' + status: 'WARNING' ) create( :compliance_check_resource, compliance_check_set: check_set, - status: 'WARNING' + status: 'OK' ) check_set.update_status |
