2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-11-26 10:37:16 +00:00
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe Issue3622AddCallbackUrl, type: :db_migration do
|
|
|
|
let(:field) do
|
|
|
|
{
|
|
|
|
'display' => 'Your callback URL',
|
|
|
|
'null' => true,
|
|
|
|
'name' => 'callback_url',
|
|
|
|
'tag' => 'auth_provider',
|
|
|
|
'provider' => 'auth_twitter'
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
before do
|
|
|
|
migrate
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'does update settings correctly' do
|
|
|
|
expect(Setting.find_by(name: 'auth_twitter_credentials').options['form']).to include(field)
|
|
|
|
end
|
|
|
|
end
|