diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-12-01 01:23:07 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-12-01 01:23:07 +0300 |
commit | e292bf5b88843a6d03ca178d3b0c4f70ecff70a6 (patch) | |
tree | b795355903deeb56ba3f8dd3e6dd289f6926e62b /spec/services/base_count_service_spec.rb | |
parent | bfac8b7abab72ad3a8c6eefeb5ef220da4b5aaa2 (diff) |
allow caching options to be specified for counting services
Diffstat (limited to 'spec/services/base_count_service_spec.rb')
-rw-r--r-- | spec/services/base_count_service_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/base_count_service_spec.rb b/spec/services/base_count_service_spec.rb index 5ec8ed0976d..090b2dcdd43 100644 --- a/spec/services/base_count_service_spec.rb +++ b/spec/services/base_count_service_spec.rb @@ -77,4 +77,10 @@ describe BaseCountService, :use_clean_rails_memory_store_caching do expect { service.cache_key }.to raise_error(NotImplementedError) end end + + describe '#cache_options' do + it 'returns the default in options' do + expect(service.cache_options).to eq({ raw: false }) + end + end end |