diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-04 15:22:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-04 15:22:38 +0000 |
commit | 0b4b96be1f12bf2a0b9b561daba716e0468a9e61 (patch) | |
tree | 1886908522f94fc9136cdce5d13484d869301489 /spec/controllers/projects | |
parent | 1f588dcbbd77cabb2b027b769c39d8c475077ced (diff) | |
download | gitlab-ce-0b4b96be1f12bf2a0b9b561daba716e0468a9e61.tar.gz |
Add latest changes from gitlab-org/gitlab@13-8-stable-ee
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/group_links_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/controllers/projects/project_members_controller_spec.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/projects/group_links_controller_spec.rb b/spec/controllers/projects/group_links_controller_spec.rb index 3baadde46dc..084a807e162 100644 --- a/spec/controllers/projects/group_links_controller_spec.rb +++ b/spec/controllers/projects/group_links_controller_spec.rb @@ -8,6 +8,10 @@ RSpec.describe Projects::GroupLinksController do let_it_be(:project) { create(:project, :private, group: group2) } let_it_be(:user) { create(:user) } + around do |example| + travel_to DateTime.new(2019, 4, 1) { example.run } + end + before do project.add_maintainer(user) sign_in(user) diff --git a/spec/controllers/projects/project_members_controller_spec.rb b/spec/controllers/projects/project_members_controller_spec.rb index 971eb782fa4..d30cc8cbfd9 100644 --- a/spec/controllers/projects/project_members_controller_spec.rb +++ b/spec/controllers/projects/project_members_controller_spec.rb @@ -7,6 +7,10 @@ RSpec.describe Projects::ProjectMembersController do let(:group) { create(:group, :public) } let(:project) { create(:project, :public) } + around do |example| + travel_to DateTime.new(2019, 4, 1) { example.run } + end + describe 'GET index' do it 'has the project_members address with a 200 status code' do get :index, params: { namespace_id: project.namespace, project_id: project } |