base_spec.rb 425 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'lib/auth/backend/backend_examples'
  4. RSpec.describe Auth::Backend::Base do
  5. let(:user) { create(:user) }
  6. let(:auth) { Auth.new(user.login, 'not_used') }
  7. let(:instance) { described_class.new({ adapter: described_class.name }, auth) }
  8. describe '#valid?' do
  9. it_behaves_like 'Auth backend'
  10. end
  11. end