diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-11 13:36:03 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-11 15:53:17 +0300 |
commit | 1b413bd62fa07930298874dff7477c239d7ab80f (patch) | |
tree | 73b3f74a47e87ab9d377aa3cb2ed47d83422a516 /spec/features/groups | |
parent | c62ae6cfd70d518386fdbcb9714d18ac4f5e8c31 (diff) |
Enable Timecop safe mode
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/milestone_spec.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/features/groups/milestone_spec.rb b/spec/features/groups/milestone_spec.rb index 574bbe0e0e1..32b3e13c624 100644 --- a/spec/features/groups/milestone_spec.rb +++ b/spec/features/groups/milestone_spec.rb @@ -5,14 +5,12 @@ feature 'Group milestones', :js do let!(:project) { create(:project_empty_repo, group: group) } let(:user) { create(:group_member, :master, user: create(:user), group: group ).user } - before do - Timecop.freeze - - sign_in(user) + around do |example| + Timecop.freeze { example.run } end - after do - Timecop.return + before do + sign_in(user) end context 'create a milestone' do |