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

20221028022627_add_index_on_password_last_changed_at_to_user_details_spec.rb « migrations « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 332b3a5abba8fb5da2cfd7cb3de9068bb160a248 (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 AddIndexOnPasswordLastChangedAtToUserDetails, :migration, feature_category: :user_profile do
  let(:index_name) { 'index_user_details_on_password_last_changed_at' }

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

    migrate!

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