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