debian-mirror-gitlab/spec/requests/runner_setup_controller_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
492 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe RunnerSetupController, feature_category: :runner_fleet do
2021-01-03 14:25:43 +05:30
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