diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/finders/deployments_finder_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/finders/deployments_finder_spec.rb')
-rw-r--r-- | spec/finders/deployments_finder_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/finders/deployments_finder_spec.rb b/spec/finders/deployments_finder_spec.rb index bd03b254f40..6d9d0c33de3 100644 --- a/spec/finders/deployments_finder_spec.rb +++ b/spec/finders/deployments_finder_spec.rb @@ -68,6 +68,7 @@ RSpec.describe DeploymentsFinder do context 'at project scope' do let_it_be(:project) { create(:project, :public, :test_repo) } + let(:base_params) { { project: project } } describe 'filtering' do @@ -76,6 +77,7 @@ RSpec.describe DeploymentsFinder do let_it_be(:deployment_2) { create(:deployment, :success, project: project, updated_at: 47.hours.ago) } let_it_be(:deployment_3) { create(:deployment, :success, project: project, updated_at: 4.days.ago) } let_it_be(:deployment_4) { create(:deployment, :success, project: project, updated_at: 1.hour.ago) } + let(:params) { { **base_params, updated_before: 1.day.ago, updated_after: 3.days.ago, order_by: :updated_at } } it 'returns deployments with matched updated_at' do @@ -268,6 +270,7 @@ RSpec.describe DeploymentsFinder do let_it_be(:group_project_1) { create(:project, :public, :test_repo, group: group) } let_it_be(:group_project_2) { create(:project, :public, :test_repo, group: group) } let_it_be(:subgroup_project_1) { create(:project, :public, :test_repo, group: subgroup) } + let(:base_params) { { group: group } } describe 'ordering' do |