Commit c6ebb26a authored by Stan Hu's avatar Stan Hu

Resolve conflicts in spec/initializers/6_validations_spec.rb

parent 2822861e
...@@ -12,22 +12,14 @@ describe '6_validations' do ...@@ -12,22 +12,14 @@ describe '6_validations' do
FileUtils.rm_rf('tmp/tests/paths') FileUtils.rm_rf('tmp/tests/paths')
end end
describe 'validate_storages_config' do
context 'with correct settings' do context 'with correct settings' do
before do before do
mock_storages('foo' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/c'), 'bar' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/d')) mock_storages('foo' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/c'), 'bar' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/d'))
end end
context 'when one of the settings is incorrect' do it 'passes through' do
before do expect { validate_storages_config }.not_to raise_error
<<<<<<< HEAD
mock_storages('foo' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/c', 'failure_count_threshold' => 'not a number'))
=======
mock_storages('foo' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/c'), 'bar' => Gitlab::GitalyClient::StorageSettings.new('path' => 'tmp/tests/paths/a/b/d'))
>>>>>>> upstream/master
end
it 'throws an error' do
expect { validate_storages_config }.to raise_error(/failure_count_threshold/)
end end
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