Welcome to mirror list, hosted at ThFree Co, Russian Federation.

every_model_spec.rb « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 479fc8d3dfa5dc4e56a8e655e287f471392eb93a (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Every model', feature_category: :shared do
  describe 'disallows STI', :eager_load do
    include_examples 'Model disables STI' do
      let(:models) { ApplicationRecord.descendants.reject(&:abstract_class?) }
    end
  end
end