summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorJarka Kadlecová <jarka@gitlab.com>2018-06-04 10:38:18 +0200
committerJarka Kadlecová <jarka@gitlab.com>2018-06-04 18:05:20 +0200
commitfb71c46805e14419897912f6338f635a21d1d097 (patch)
tree902fe0a53b6fe6bdcda2713b1f7cd02d2f4f38a1 /spec/models
parent50fda506e3bc93af47c8ebcbfc7d38c7ae55467d (diff)
downloadgitlab-ce-fb71c46805e14419897912f6338f635a21d1d097.tar.gz
Fix repository_storage spec for Rails5rails5-fix-application-setting-spec
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/application_setting_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/application_setting_spec.rb b/spec/models/application_setting_spec.rb
index 968267a6d24..3e6656e0f12 100644
--- a/spec/models/application_setting_spec.rb
+++ b/spec/models/application_setting_spec.rb
@@ -110,10 +110,9 @@ describe ApplicationSetting do
# Upgraded databases will have this sort of content
context 'repository_storages is a String, not an Array' do
before do
- setting.__send__(:raw_write_attribute, :repository_storages, 'default')
+ described_class.where(id: setting.id).update_all(repository_storages: 'default')
end
- it { expect(setting.repository_storages_before_type_cast).to eq('default') }
it { expect(setting.repository_storages).to eq(['default']) }
end