about summary refs log tree commit diff
path: root/spec/models/site_upload_spec.rb
blob: f7ea06921301f2e8bbbe3417ecd8ed980819e19c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe SiteUpload, type: :model do
  describe '#cache_key' do
    let(:site_upload) { SiteUpload.new(var: 'var') }

    it 'returns cache_key' do
      expect(site_upload.cache_key).to eq 'site_uploads/var'
    end
  end
end