site_upload_spec.rb 279 B

12345678910111213
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe SiteUpload do
  4. describe '#cache_key' do
  5. let(:site_upload) { described_class.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