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

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

require 'spec_helper'
require_migration!

RSpec.describe AddIndexForMemberExpiringQuery, :migration, feature_category: :groups_and_projects do
  let(:index_name) { 'index_members_on_expiring_at_access_level_id' }

  it 'correctly migrates up and down' do
    expect(subject).not_to be_index_exists_by_name(:members, index_name)

    migrate!

    expect(subject).to be_index_exists_by_name(:members, index_name)
  end
end