diff options
author | syasonik <syasonik@gitlab.com> | 2019-04-25 09:13:43 +0300 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-04-25 09:13:43 +0300 |
commit | 0e093940e1135897b996a5f16239eca62cc6089e (patch) | |
tree | 9a2a30ba88d9b5ed1ca8020897890c7d516c17d4 /spec/lib/gitlab/metrics/dashboard | |
parent | 8926b37d5b0c48b9ef89e4769e622563a9b11e9f (diff) |
Move dashboard param to initialize method
Diffstat (limited to 'spec/lib/gitlab/metrics/dashboard')
-rw-r--r-- | spec/lib/gitlab/metrics/dashboard/processor_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/metrics/dashboard/processor_spec.rb b/spec/lib/gitlab/metrics/dashboard/processor_spec.rb index e27ba2f1f4e..ee7c93fce8d 100644 --- a/spec/lib/gitlab/metrics/dashboard/processor_spec.rb +++ b/spec/lib/gitlab/metrics/dashboard/processor_spec.rb @@ -8,8 +8,8 @@ describe Gitlab::Metrics::Dashboard::Processor do let(:dashboard_yml) { YAML.load_file('spec/fixtures/lib/gitlab/metrics/dashboard/sample_dashboard.yml') } describe 'process' do - let(:process_params) { [project, environment] } - let(:dashboard) { described_class.new(*process_params).process(dashboard_yml) } + let(:process_params) { [project, environment, dashboard_yml] } + let(:dashboard) { described_class.new(*process_params).process } context 'when dashboard config corresponds to common metrics' do let!(:common_metric) { create(:prometheus_metric, :common, identifier: 'metric_a1') } |