summaryrefslogtreecommitdiff
path: root/spec/ci/features/variables_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ci/features/variables_spec.rb')
-rw-r--r--spec/ci/features/variables_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/ci/features/variables_spec.rb b/spec/ci/features/variables_spec.rb
new file mode 100644
index 00000000000..2bb0d9dedde
--- /dev/null
+++ b/spec/ci/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("Variables were successfully updated.")
+ @project.variables.count.should == 1
+ end
+
+ end
+end