Welcome to mirror list, hosted at ThFree Co, Russian Federation.

variables_spec.rb « features « ci « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2bb0d9dedde47f674e4826195993ffb302473799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'spec_helper'

describe "Variables" do
  before do
    login_as :user
  end

  describe "specific runners" do
    before do
      @project = FactoryGirl.create :project
      stub_js_gitlab_calls
    end

    it "creates variable", js: true do
      visit 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"
      
      page.should have_content("Variables were successfully updated.")
      @project.variables.count.should == 1
    end

  end
end