diff options
author | James Lopez <james@jameslopez.es> | 2016-12-14 10:49:32 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-14 16:49:10 +0300 |
commit | 5ac78a23693281ee693a383c9145b270d4602b09 (patch) | |
tree | 8f34dc2251d9f9019d40757d1b37a7616a223f14 /spec/serializers/analytics_build_entity_spec.rb | |
parent | 278baa5b618c5595045415a55d863daf9a15d792 (diff) |
fix transient timing failure adding timecop
Diffstat (limited to 'spec/serializers/analytics_build_entity_spec.rb')
-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 |