trabajo-afectivo/spec/db/migrate/issue_3622_add_callback_url_spec.rb

24 lines
553 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# 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