Skip to content

Commit

Permalink
🤖 Favor general spec over specific
Browse files Browse the repository at this point in the history
With the CircleCI alternate place for the file_store cache, we need to
fallback to a more general test assertion.
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 87ce1dc commit 408d518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
it "reverts to using file store when cache is off" do
account.settings[:cache_api] = false
account.switch!
expect(Rails.application.config.cache_store).to eq([:file_store, "/app/samvera/file_cache"])
expect(Rails.application.config.cache_store).to eq([:file_store, kind_of(String)])
end
end

Expand All @@ -140,7 +140,7 @@
it "uses the file store" do
expect(Rails.application.config.action_controller.perform_caching).to be_falsey
expect(ActionController::Base.perform_caching).to be_falsey
expect(Rails.application.config.cache_store).to eq([:file_store, "/app/samvera/file_cache"])
expect(Rails.application.config.cache_store).to eq([:file_store, kind_of(String)])
end
end

Expand Down

0 comments on commit 408d518

Please sign in to comment.