diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/models/terraform | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/models/terraform')
-rw-r--r-- | spec/models/terraform/state_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/models/terraform/state_spec.rb b/spec/models/terraform/state_spec.rb index 00e67ad70db..68bb86bfa49 100644 --- a/spec/models/terraform/state_spec.rb +++ b/spec/models/terraform/state_spec.rb @@ -45,9 +45,7 @@ RSpec.describe Terraform::State do describe '#update_file_store' do context 'when file is stored in object storage' do - it 'sets file_store to remote' do - expect(subject.file_store).to eq(ObjectStorage::Store::REMOTE) - end + it_behaves_like 'mounted file in object store' end context 'when file is stored locally' do @@ -55,9 +53,7 @@ RSpec.describe Terraform::State do stub_terraform_state_object_storage(Terraform::StateUploader, enabled: false) end - it 'sets file_store to local' do - expect(subject.file_store).to eq(ObjectStorage::Store::LOCAL) - end + it_behaves_like 'mounted file in local store' end end end |