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

3
feature '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 10 11 12

  background do
    group.add_master(user)
    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