2017-11-14 21:44:11 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-14 01:04:30 +03:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe SiteUpload, type: :model do
|
2017-11-14 21:44:11 +02:00
|
|
|
describe '#cache_key' do
|
|
|
|
let(:site_upload) { SiteUpload.new(var: 'var') }
|
2017-09-14 01:04:30 +03:00
|
|
|
|
2017-11-14 21:44:11 +02:00
|
|
|
it 'returns cache_key' do
|
|
|
|
expect(site_upload.cache_key).to eq 'site_uploads/var'
|
|
|
|
end
|
|
|
|
end
|
2017-09-14 01:04:30 +03:00
|
|
|
end
|