2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe RunnerSetupController do
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in(user)
|
|
|
|
end
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
describe 'GET /-/runner_setup/platforms' do
|
2021-01-03 14:25:43 +05:30
|
|
|
it 'renders the platforms' do
|
2021-03-08 18:12:59 +05:30
|
|
|
get runner_setup_platforms_url
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
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
|