logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 48e27c47a71e93a501de77e1507f8b25dcdc6fb0
parent: 1f1838420fdaf15f3d4a61b22f4a98b9793c54a6
Author: ysksn <bluewhale1982@gmail.com>
Date:   Wed, 15 Nov 2017 04:44:11 +0900

Add a test for SiteUpload#cache_key (#5685)


Diffstat:

Mspec/models/site_upload_spec.rb8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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