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

disables_sti_spec.rb « concerns « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07eea6352899548e75e3fc1f58bf8770a44d7f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe DisablesSti, feature_category: :shared do
  describe '.allow_legacy_sti_class' do
    it 'is nil by default' do
      expect(ApplicationRecord.allow_legacy_sti_class).to eq(nil)
    end

    it 'is true on legacy models' do
      expect(PersonalSnippet.allow_legacy_sti_class).to eq(true)
    end
  end
end