trabajo-afectivo/spec/db/migrate/issue_3622_add_callback_url_spec.rb
2022-01-01 14:38:12 +01:00

23 lines
553 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
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