summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-02-06 14:46:13 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-02-06 16:21:24 -0600
commit1e9280a9d25b97b0632c00bda68e7032c13037c5 (patch)
treef7d40e400b2a2c82558697668f6444e6d3fc4d98
parentb5df3bffd78e4c4c4451bc6ac9b5c15a258e47b1 (diff)
downloadgitlab-ce-26165-combine-runners-and-variables-and-triggers-and-ci-cd-pipelines-settings-pages.tar.gz
-rw-r--r--spec/controllers/projects/variables_controller_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/controllers/projects/variables_controller_spec.rb b/spec/controllers/projects/variables_controller_spec.rb
index 228cb513554..9fa358f7d62 100644
--- a/spec/controllers/projects/variables_controller_spec.rb
+++ b/spec/controllers/projects/variables_controller_spec.rb
@@ -25,8 +25,7 @@ describe Projects::VariablesController do
post :create, namespace_id: project.namespace.to_param, project_id: project.to_param,
variable: { key: "..one", value: "two" }
- expect(flash[:alert]).to include 'Key can contain only letters, digits and \'_\'.'
- expect(response).to redirect_to(namespace_project_settings_ci_cd_path(project.namespace, project))
+ expect(response).to render_template("projects/variables/show")
end
end
end