logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

site_upload_spec.rb (288B)


  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe SiteUpload, type: :model do
  4. describe '#cache_key' do
  5. let(:site_upload) { SiteUpload.new(var: 'var') }
  6. it 'returns cache_key' do
  7. expect(site_upload.cache_key).to eq 'site_uploads/var'
  8. end
  9. end
  10. end