15 lines
480 B
Ruby
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
|