Skip to content

Commit

Permalink
Maintenance: Improve Setting model test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas committed May 3, 2024
1 parent 7c2cdc8 commit b4e75d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/setting_spec.rb
Expand Up @@ -98,7 +98,7 @@
end

context 'when Setting updated outside of the process and class variables were not touched' do
before { described_class.all.sample.touch }
before { described_class.find_by(name: 'maintenance_login').touch }

it 'cache is seen as valid' do
expect(described_class).to be_cache_valid
Expand Down

0 comments on commit b4e75d2

Please sign in to comment.