This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-11-14 11:44:11 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-13 15:04:30 -07:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2023-05-03 20:49:53 -07:00
|
|
|
RSpec.describe SiteUpload do
|
2017-11-14 11:44:11 -08:00
|
|
|
describe '#cache_key' do
|
|
|
|
let(:site_upload) { SiteUpload.new(var: 'var') }
|
2017-09-13 15:04:30 -07:00
|
|
|
|
2017-11-14 11:44:11 -08:00
|
|
|
it 'returns cache_key' do
|
|
|
|
expect(site_upload.cache_key).to eq 'site_uploads/var'
|
|
|
|
end
|
|
|
|
end
|
2017-09-13 15:04:30 -07:00
|
|
|
end
|