1
0

site_upload_spec.rb 288 B

12345678910111213
  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