Commit 7d942991 authored by Peter Leitzen's avatar Peter Leitzen

Move model overrides into own spec location

This fixes an auto-loading issue with spring which caused:

`MergeRequestWithoutMergeRequestDiff` causing superclass mismatch for
class
parent 1c6af0e9
......@@ -290,9 +290,3 @@ FactoryBot.define do
factory :merge_request_without_merge_request_diff, class: 'MergeRequestWithoutMergeRequestDiff'
end
end
class MergeRequestWithoutMergeRequestDiff < ::MergeRequest
self.inheritance_column = :_type_disabled
def ensure_merge_request_diff; end
end
# frozen_string_literal: true
class MergeRequestWithoutMergeRequestDiff < ::MergeRequest
self.inheritance_column = :_type_disabled
def ensure_merge_request_diff; end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment