summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/settings/operations_controller_spec.rb
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-04-26 17:23:26 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-26 17:23:26 +0000
commit4376167a04aaeed084ad93aab2e65550109235c6 (patch)
tree99fa950932bf6ea5c0d453c9d4494a0adb0c16f3 /spec/controllers/projects/settings/operations_controller_spec.rb
parentbb6908cd5bcb14d70dfadbc2a16d7310bfa65445 (diff)
downloadgitlab-ce-4376167a04aaeed084ad93aab2e65550109235c6.tar.gz
Add ProjectMetricsDashboardSetting model and table
This new table will be used to store the external_dashboard_url which allows users to add a link to their external dashboards (ex Grafana) to the Metrics dashboard.
Diffstat (limited to 'spec/controllers/projects/settings/operations_controller_spec.rb')
-rw-r--r--spec/controllers/projects/settings/operations_controller_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/controllers/projects/settings/operations_controller_spec.rb b/spec/controllers/projects/settings/operations_controller_spec.rb
index 0dd73972098..aa9cd41ed19 100644
--- a/spec/controllers/projects/settings/operations_controller_spec.rb
+++ b/spec/controllers/projects/settings/operations_controller_spec.rb
@@ -166,6 +166,20 @@ describe Projects::Settings::OperationsController do
end
end
+ context 'metrics dashboard setting' do
+ describe 'PATCH #update' do
+ let(:params) do
+ {
+ metrics_setting_attributes: {
+ external_dashboard_url: 'https://gitlab.com'
+ }
+ }
+ end
+
+ it_behaves_like 'PATCHable'
+ end
+ end
+
private
def project_params(project, params = {})