BigW Consortium Gitlab

ci_cd_controller_spec.rb 425 Bytes
Newer Older
Shinya Maeda committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require 'spec_helper'

describe Groups::Settings::CiCdController do
  let(:group) { create(:group) }
  let(:user) { create(:user) }

  before do
    group.add_master(user)
    sign_in(user)
  end

  describe 'GET #show' do
    it 'renders show with 200 status code' do
      get :show, group_id: group

16
      expect(response).to have_gitlab_http_status(200)
Shinya Maeda committed
17 18 19 20
      expect(response).to render_template(:show)
    end
  end
end