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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 21:06:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 21:06:58 +0300
commit41efffa17c67405ca5f5dac49d72be7872cee339 (patch)
treeb5a369af722bb4d0f8ebfcb6abe2651864414a6d /spec/views/admin/application_settings
parentcc6b394a063eb77c90505e4adca2e2da2e29c3a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/admin/application_settings')
-rw-r--r--spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb b/spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb
new file mode 100644
index 00000000000..3029bfb6df5
--- /dev/null
+++ b/spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb
@@ -0,0 +1,28 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe 'admin/application_settings/_repository_storage.html.haml' do
+ let(:app_settings) { build(:application_setting) }
+ let(:storages) do
+ {
+ "mepmep" => { "path" => "/tmp" },
+ "foobar" => { "path" => "/tmp" }
+ }
+ end
+
+ before do
+ assign(:application_setting, app_settings)
+ stub_storage_settings(storages)
+ end
+
+ context 'when multiple storages are available' do
+ it 'lists them all' do
+ render
+
+ storages.keys.each do |storage_name|
+ expect(rendered).to have_content(storage_name)
+ end
+ end
+ end
+end