mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 22:16:15 +10:00
27 lines
598 B
Ruby
27 lines
598 B
Ruby
require 'spec_helper'
|
|
|
|
describe "Variables" do
|
|
before do
|
|
login_as :user
|
|
end
|
|
|
|
describe "specific runners" do
|
|
before do
|
|
@project = FactoryGirl.create :ci_project
|
|
stub_js_gitlab_calls
|
|
end
|
|
|
|
it "creates variable", js: true do
|
|
visit ci_project_variables_path(@project)
|
|
click_on "Add a variable"
|
|
fill_in "Key", with: "SECRET_KEY"
|
|
fill_in "Value", with: "SECRET_VALUE"
|
|
click_on "Save changes"
|
|
|
|
expect(page).to have_content("Variables were successfully updated.")
|
|
expect(@project.variables.count).to eq(1)
|
|
end
|
|
|
|
end
|
|
end
|