mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Add a test for SiteUpload#cache_key (#5685)
This commit is contained in:
parent
1f1838420f
commit
48e27c47a7
@ -1,5 +1,13 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe SiteUpload, type: :model do
|
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user