trabajo-afectivo/spec/lib/auth/backend/base_spec.rb
2022-01-01 14:38:12 +01:00

15 lines
417 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
require 'lib/auth/backend/backend_examples'
RSpec.describe Auth::Backend::Base do
let(:user) { create(:user) }
let(:auth) { Auth.new(user.login, 'not_used') }
let(:instance) { described_class.new({ adapter: described_class.name }, auth) }
describe '#valid?' do
it_behaves_like 'Auth backend'
end
end