system_assets_spec.rb 458 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Service::SystemAssets do
  4. describe '.backend' do
  5. it 'returns class when identifier is correct' do
  6. expect(described_class.backend('product_logo'))
  7. .to eq described_class::ProductLogo
  8. end
  9. it 'returns nil when identifier is not correct' do
  10. expect(described_class.backend('example')).to be_nil
  11. end
  12. end
  13. end