summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-23 21:15:33 +0000
committerStan Hu <stanhu@gmail.com>2018-01-23 21:15:33 +0000
commitfbbd81eee6faf9ee9cb3f4071c35bc93147b94b3 (patch)
treee0a0b6109bbbdfb39ec3ac21d2314167468210c6
parent44bdfa1a37c083070a1f20e89f886bbe6394f6e2 (diff)
parentd8eb961d0b84ef35e1b856869f5ae2a880c4b84a (diff)
downloadgitlab-ce-fbbd81eee6faf9ee9cb3f4071c35bc93147b94b3.tar.gz
Merge branch '42340-ci-failing-on-mergerequestdiff-commits_count' into 'master'
Resolve "CI failing on MergeRequestDiff#commits_count=" Closes #42340 See merge request gitlab-org/gitlab-ce!16653
-rw-r--r--spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb b/spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb
index e99257e3481..4cdb679c97f 100644
--- a/spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb
+++ b/spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb
@@ -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) }