fix transient timing failure adding timecop

This commit is contained in:
James Lopez 2016-12-14 08:49:32 +01:00
parent 278baa5b61
commit 5ac78a2369
1 changed files with 8 additions and 0 deletions

View File

@ -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