diff options
author | James Lopez <james@jameslopez.es> | 2016-12-14 08:49:32 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-14 14:49:10 +0100 |
commit | 5ac78a23693281ee693a383c9145b270d4602b09 (patch) | |
tree | 8f34dc2251d9f9019d40757d1b37a7616a223f14 | |
parent | 278baa5b618c5595045415a55d863daf9a15d792 (diff) | |
download | gitlab-ce-5ac78a23693281ee693a383c9145b270d4602b09.tar.gz |
fix transient timing failure adding timecopfix/transient-failing-analytics-spec
-rw-r--r-- | spec/serializers/analytics_build_entity_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/serializers/analytics_build_entity_spec.rb b/spec/serializers/analytics_build_entity_spec.rb index 6b33fe66a63..86e703a6448 100644 --- a/spec/serializers/analytics_build_entity_spec.rb +++ b/spec/serializers/analytics_build_entity_spec.rb @@ -13,6 +13,14 @@ describe AnalyticsBuildEntity do subject { entity.as_json } + before do + Timecop.freeze + end + + after do + Timecop.return + end + it 'contains the URL' do expect(subject).to include(:url) end |