diff options
Diffstat (limited to 'spec/lib/api/helpers/caching_spec.rb')
-rw-r--r-- | spec/lib/api/helpers/caching_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/lib/api/helpers/caching_spec.rb b/spec/lib/api/helpers/caching_spec.rb index 828af7b5f91..03025823357 100644 --- a/spec/lib/api/helpers/caching_spec.rb +++ b/spec/lib/api/helpers/caching_spec.rb @@ -47,12 +47,14 @@ RSpec.describe API::Helpers::Caching, :use_clean_rails_redis_caching do context 'single object' do let_it_be(:presentable) { create(:todo, project: project) } + let(:expected_cache_key_prefix) { 'API::Entities::Todo' } it_behaves_like 'object cache helper' end context 'collection of objects' do let_it_be(:presentable) { Array.new(5).map { create(:todo, project: project) } } + let(:expected_cache_key_prefix) { 'API::Entities::Todo' } it_behaves_like 'collection cache helper' end |