Commit fb71c468 authored by Jarka Kadlecová's avatar Jarka Kadlecová

Fix repository_storage spec for Rails5

parent 50fda506
...@@ -110,10 +110,9 @@ describe ApplicationSetting do ...@@ -110,10 +110,9 @@ describe ApplicationSetting do
# Upgraded databases will have this sort of content # Upgraded databases will have this sort of content
context 'repository_storages is a String, not an Array' do context 'repository_storages is a String, not an Array' do
before do before do
setting.__send__(:raw_write_attribute, :repository_storages, 'default') described_class.where(id: setting.id).update_all(repository_storages: 'default')
end end
it { expect(setting.repository_storages_before_type_cast).to eq('default') }
it { expect(setting.repository_storages).to eq(['default']) } it { expect(setting.repository_storages).to eq(['default']) }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment