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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-02-06 23:46:13 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2017-02-07 01:21:24 +0300
commit1e9280a9d25b97b0632c00bda68e7032c13037c5 (patch)
treef7d40e400b2a2c82558697668f6444e6d3fc4d98
parentb5df3bffd78e4c4c4451bc6ac9b5c15a258e47b1 (diff)
Fixed variables_controller_spec.rb test
-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