about summary refs log blame commit diff
path: root/spec/models/site_upload_spec.rb
blob: f7ea06921301f2e8bbbe3417ecd8ed980819e19c (plain) (tree)
1
2
3
4
5
6
7
8
                             

                                          
                                                    
 


                                                            
   
# 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