issue_3622_add_callback_url_spec.rb 553 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Issue3622AddCallbackUrl, type: :db_migration do
  4. let(:field) do
  5. {
  6. 'display' => 'Your callback URL',
  7. 'null' => true,
  8. 'name' => 'callback_url',
  9. 'tag' => 'auth_provider',
  10. 'provider' => 'auth_twitter'
  11. }
  12. end
  13. before do
  14. migrate
  15. end
  16. it 'does update settings correctly' do
  17. expect(Setting.find_by(name: 'auth_twitter_credentials').options['form']).to include(field)
  18. end
  19. end