gitlab-org--gitlab-foss/spec/migrations/20221008032350_add_password...

20 lines
521 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
require_migration!
RSpec.describe AddPasswordExpirationMigration do
let(:application_setting) { table(:application_settings).create! }
describe "#up" do
it 'allows to read password expiration fields' do
migrate!
expect(application_setting.password_expiration_enabled).to eq false
expect(application_setting.password_expires_in_days).to eq 90
expect(application_setting.password_expires_notice_before_days).to eq 7
end
end
end