summaryrefslogtreecommitdiff
path: root/spec/requests/runner_setup_controller_spec.rb
blob: 5a9c296afd14247fd6f7d748c7b341a6e6bcfef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe RunnerSetupController, feature_category: :runner do
  let(:user) { create(:user) }

  before do
    sign_in(user)
  end

  describe 'GET /-/runner_setup/platforms' do
    it 'renders the platforms' do
      get runner_setup_platforms_url

      expect(response).to have_gitlab_http_status(:ok)
      expect(json_response).to have_key("windows")
      expect(json_response).to have_key("kubernetes")
    end
  end
end