Fix a migration spec messing up the MergeRequestDiff DB schema

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-01-23 17:42:37 +01:00
parent f74e431b44
commit d8eb961d0b
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ describe Gitlab::BackgroundMigration::PopulateMergeRequestMetricsWithEventsData,
.to receive(:commits_count=).and_return(nil)
end
after do
[MergeRequest, MergeRequestDiff].each(&:reset_column_information)
end
describe '#perform' do
let(:mr_with_event) { create(:merge_request) }
let!(:merged_event) { create(:event, :merged, target: mr_with_event) }