diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-11 12:36:03 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-11 14:53:17 +0200 |
commit | 1b413bd62fa07930298874dff7477c239d7ab80f (patch) | |
tree | 73b3f74a47e87ab9d377aa3cb2ed47d83422a516 /spec/serializers | |
parent | c62ae6cfd70d518386fdbcb9714d18ac4f5e8c31 (diff) | |
download | gitlab-ce-1b413bd62fa07930298874dff7477c239d7ab80f.tar.gz |
Enable Timecop safe mode32004-use-timecop-safe-mode
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/analytics_build_entity_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/serializers/analytics_build_entity_spec.rb b/spec/serializers/analytics_build_entity_spec.rb index 9f26d5cd09a..1ff4908972a 100644 --- a/spec/serializers/analytics_build_entity_spec.rb +++ b/spec/serializers/analytics_build_entity_spec.rb @@ -13,12 +13,8 @@ describe AnalyticsBuildEntity do subject { entity.as_json } - before do - Timecop.freeze - end - - after do - Timecop.return + around do |example| + Timecop.freeze { example.run } end it 'contains the URL' do |