group_variables_spec.rb 413 Bytes
Newer Older
Shinya Maeda's avatar
Shinya Maeda committed
1 2
require 'spec_helper'

3
describe 'Group variables', :js do
Shinya Maeda's avatar
Shinya Maeda committed
4 5
  let(:user) { create(:user) }
  let(:group) { create(:group) }
6 7
  let!(:variable) { create(:ci_group_variable, key: 'test_key', value: 'test value', group: group) }
  let(:page_path) { group_settings_ci_cd_path(group) }
Shinya Maeda's avatar
Shinya Maeda committed
8

9
  before do
10
    group.add_maintainer(user)
Shinya Maeda's avatar
Shinya Maeda committed
11 12
    gitlab_sign_in(user)

13
    visit page_path
Shinya Maeda's avatar
Shinya Maeda committed
14 15
  end

16
  it_behaves_like 'variable list'
Shinya Maeda's avatar
Shinya Maeda committed
17
end