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

00_deprecations_spec.rb « initializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e52e64415af23afe41ede0f1a19447e0e2be6b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe '00_deprecations' do
  where(:warning) do
    [
      "ActiveModel::Errors#keys is deprecated and will be removed in Rails 6.2",
      "Rendering actions with '.' in the name is deprecated:",
      "default_hash is deprecated and will be removed from Rails 6.2"
    ]
  end

  with_them do
    specify do
      expect { ActiveSupport::Deprecation.warn(warning) }
        .to raise_error(ActiveSupport::DeprecationException)
    end
  end
end