diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-04 18:22:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-04 18:22:38 +0300 |
commit | 0b4b96be1f12bf2a0b9b561daba716e0468a9e61 (patch) | |
tree | 1886908522f94fc9136cdce5d13484d869301489 /spec/controllers/groups | |
parent | 1f588dcbbd77cabb2b027b769c39d8c475077ced (diff) |
Add latest changes from gitlab-org/gitlab@13-8-stable-ee
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/group_links_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/controllers/groups/group_members_controller_spec.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/groups/group_links_controller_spec.rb b/spec/controllers/groups/group_links_controller_spec.rb index c411d9cfb63..a2f7161ca41 100644 --- a/spec/controllers/groups/group_links_controller_spec.rb +++ b/spec/controllers/groups/group_links_controller_spec.rb @@ -9,6 +9,10 @@ RSpec.describe Groups::GroupLinksController do let(:group_member) { create(:user) } let!(:project) { create(:project, group: shared_group) } + around do |example| + travel_to DateTime.new(2019, 4, 1) { example.run } + end + before do sign_in(user) diff --git a/spec/controllers/groups/group_members_controller_spec.rb b/spec/controllers/groups/group_members_controller_spec.rb index 5425a437c80..4d78419e8eb 100644 --- a/spec/controllers/groups/group_members_controller_spec.rb +++ b/spec/controllers/groups/group_members_controller_spec.rb @@ -9,6 +9,10 @@ RSpec.describe Groups::GroupMembersController do let(:group) { create(:group, :public) } let(:membership) { create(:group_member, group: group) } + around do |example| + travel_to DateTime.new(2019, 4, 1) { example.run } + end + describe 'GET index' do it 'renders index with 200 status code' do get :index, params: { group_id: group } |