Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_repository_storage.html.haml_spec.rb « application_settings « admin « views « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3029bfb6df5f0c432ce79c730570e950361fec49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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