mirror of
https://github.com/funamitech/mastodon
synced 2024-12-01 00:08:39 +09:00
14 lines
288 B
Ruby
14 lines
288 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe SiteUpload, type: :model 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
|