Merge branch 'rs-fix-time-based-broken-master' into 'master'

Freeze date in merge request status view spec

See merge request gitlab-org/gitlab-ce!25671
This commit is contained in:
Fatih Acet 2019-03-01 02:39:19 +00:00
commit c994484d17

View file

@ -2,6 +2,12 @@
require 'spec_helper'
describe 'projects/issues/_merge_requests_status.html.haml' do
around do |ex|
Timecop.freeze(Date.new(2018, 7, 22)) do
ex.run
end
end
it 'shows date of status change in tooltip' do
merge_request = create(:merge_request, created_at: 1.month.ago)