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

15 lines
480 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
RSpec.describe StaticAssets do
describe '.data_url_attributes' do
it 'raises error if empty string given' do
expect { described_class.data_url_attributes('') }.to raise_error(%r{Unable to parse data url})
end
it 'raises error if nil' do
expect { described_class.data_url_attributes(nil) }.to raise_error(%r{Unable to parse data url})
end
end
end