diff options
author | Valery Sizov <valery@gitlab.com> | 2015-06-08 06:57:49 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-06-08 06:57:49 +0000 |
commit | 10c1ce31035539e0c87ae6439937ada230285b49 (patch) | |
tree | ec22cc9986214acbeb4f6c726aff4561f22f25e7 /spec/features/variables_spec.rb | |
parent | 06f586c8e85d100070745e8453bf9dc1b2528451 (diff) | |
parent | b0d6438548a86084cb4c45d4dd92aeae54d09201 (diff) | |
download | gitlab-ci-10c1ce31035539e0c87ae6439937ada230285b49.tar.gz |
Merge branch 'variables' into 'master'
Implementation of secret variables
https://dev.gitlab.org/gitlab/gitlab-ci/issues/246
@ayufan It will return variables like an array:
API call - POST `builds/register`
```
variables:[{"key": "KEY", "value": "VALUE"}]
```

/cc @dzaporozhets @ayufan
See merge request !125
Diffstat (limited to 'spec/features/variables_spec.rb')
-rw-r--r-- | spec/features/variables_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/features/variables_spec.rb b/spec/features/variables_spec.rb new file mode 100644 index 0000000..21a7a11 --- /dev/null +++ b/spec/features/variables_spec.rb @@ -0,0 +1,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("Project was successfully updated.") + @project.variables.count.should == 1 + end + + end +end |