Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-26 00:39:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-26 00:39:47 +0300
commitc20afb33b244921fd36244be6a02bdb94727f2c4 (patch)
tree15fba466b1c0041a9cbfb00b34ebba68fce71c17 /spec
parente7b32a77cc40a14eb0dd6ae1bfc6f036819c66cc (diff)
Add latest changes from gitlab-org/gitlab@16-0-stable-ee
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab_settings/settings_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab_settings/settings_spec.rb b/spec/lib/gitlab_settings/settings_spec.rb
index 161c26dbb9f..4422bea4a63 100644
--- a/spec/lib/gitlab_settings/settings_spec.rb
+++ b/spec/lib/gitlab_settings/settings_spec.rb
@@ -31,6 +31,15 @@ RSpec.describe GitlabSettings::Settings, :aggregate_failures, feature_category:
expect { described_class.new(source, '') }
.to raise_error(ArgumentError, 'config section is required')
end
+
+ it 'sets encodings' do
+ expect(Encoding).to receive(:default_external=).with(Encoding::UTF_8).and_call_original
+ expect(Encoding).to receive(:default_internal=).with(Encoding::UTF_8).and_call_original
+
+ File.write(source, { section1: { config1: { value1: 2 } } }.to_yaml)
+
+ described_class.new(source, 'section1')
+ end
end
describe '#reload!' do