0
0
Fork 0

Remove unneeded settings cleanup from specs (#28425)

This commit is contained in:
Claire 2023-12-19 16:17:22 +01:00 committed by GitHub
parent c7c727994a
commit 6fed0fcbaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 8 additions and 189 deletions

View file

@ -292,12 +292,6 @@ describe ApplicationHelper do
end
describe 'title' do
around do |example|
site_title = Setting.site_title
example.run
Setting.site_title = site_title
end
it 'returns site title on production environment' do
Setting.site_title = 'site title'
allow(Rails.env).to receive(:production?).and_return(true)
@ -318,12 +312,6 @@ describe ApplicationHelper do
allow(Rails.env).to receive(:production?).and_return(true)
end
around do |example|
site_title = Setting.site_title
example.run
Setting.site_title = site_title
end
context 'with a page_title content_for value' do
it 'uses the value in the html title' do
Setting.site_title = 'Site Title'