Skip to content

Commit

Permalink
Add spec to check for cache log muting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Mar 1, 2021
1 parent 27d2222 commit 677cc20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/lib/decidim/term_customizer/loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@

subject.translations_hash
end

it "mutes the cache logging during fetch" do
expect(Rails.cache).to receive(:mute).and_call_original
expect(Rails.cache).to receive(:fetch)

subject.translations_hash
end
end

describe "#clear_cache" do
Expand Down

0 comments on commit 677cc20

Please sign in to comment.