mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-16 03:43:08 +00:00
14 lines
274 B
Ruby
14 lines
274 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe SiteUpload do
|
|
describe '#cache_key' do
|
|
let(:site_upload) { SiteUpload.new(var: 'var') }
|
|
|
|
it 'returns cache_key' do
|
|
expect(site_upload.cache_key).to eq 'site_uploads/var'
|
|
end
|
|
end
|
|
end
|