diff options
author | ysksn <bluewhale1982@gmail.com> | 2017-11-15 04:44:11 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-11-14 20:44:11 +0100 |
commit | 48e27c47a71e93a501de77e1507f8b25dcdc6fb0 (patch) | |
tree | 70e384ed221758cc0247259f01772c9dd3bc1d30 /spec | |
parent | 1f1838420fdaf15f3d4a61b22f4a98b9793c54a6 (diff) |
Add a test for SiteUpload#cache_key (#5685)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/site_upload_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/site_upload_spec.rb b/spec/models/site_upload_spec.rb index 8745d54b8..f7ea06921 100644 --- a/spec/models/site_upload_spec.rb +++ b/spec/models/site_upload_spec.rb @@ -1,5 +1,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 |