2017-11-14 19:44:11 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-13 22:04:30 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2023-05-04 03:49:53 +00:00
|
|
|
RSpec.describe SiteUpload do
|
2017-11-14 19:44:11 +00:00
|
|
|
describe '#cache_key' do
|
2023-06-06 11:58:33 +00:00
|
|
|
let(:site_upload) { described_class.new(var: 'var') }
|
2017-09-13 22:04:30 +00:00
|
|
|
|
2017-11-14 19:44:11 +00:00
|
|
|
it 'returns cache_key' do
|
|
|
|
expect(site_upload.cache_key).to eq 'site_uploads/var'
|
|
|
|
end
|
|
|
|
end
|
2017-09-13 22:04:30 +00:00
|
|
|
end
|