From 41efffa17c67405ca5f5dac49d72be7872cee339 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 9 Oct 2019 18:06:58 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../_repository_storage.html.haml_spec.rb | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb (limited to 'spec/views/admin/application_settings') 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 -- cgit v1.2.3