1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/spec/models/site_upload_spec.rb

14 lines
279 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe SiteUpload do
describe '#cache_key' do
let(:site_upload) { described_class.new(var: 'var') }
it 'returns cache_key' do
expect(site_upload.cache_key).to eq 'site_uploads/var'
end
end
end