Commit 1e9280a9 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fixed variables_controller_spec.rb test

parent b5df3bff
...@@ -25,8 +25,7 @@ describe Projects::VariablesController do ...@@ -25,8 +25,7 @@ describe Projects::VariablesController do
post :create, namespace_id: project.namespace.to_param, project_id: project.to_param, post :create, namespace_id: project.namespace.to_param, project_id: project.to_param,
variable: { key: "..one", value: "two" } variable: { key: "..one", value: "two" }
expect(flash[:alert]).to include 'Key can contain only letters, digits and \'_\'.' expect(response).to render_template("projects/variables/show")
expect(response).to redirect_to(namespace_project_settings_ci_cd_path(project.namespace, project))
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment