summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-22 20:53:14 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-29 15:13:05 +0100
commit2b5a639d794f42156c224ccef50910c4cf44b791 (patch)
treede724807b80f9de9a9ec3c0cde95ec74dc0c93ed
parent75b49298f70edfd5367e40d06c28e8a3e4688564 (diff)
downloadgitlab-ce-2b5a639d794f42156c224ccef50910c4cf44b791.tar.gz
use public_send where appropriate
-rw-r--r--spec/lib/gitlab/metrics/concern_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/metrics/concern_spec.rb b/spec/lib/gitlab/metrics/concern_spec.rb
index c0d4ff8dd0f..a170c86cdc1 100644
--- a/spec/lib/gitlab/metrics/concern_spec.rb
+++ b/spec/lib/gitlab/metrics/concern_spec.rb
@@ -35,19 +35,19 @@ describe Gitlab::Metrics::Concern do
it 'calls fetch_metric' do
expect(subject).to receive(:init_metric).with(metric_type, metric_name, docstring: docstring)
- subject.send(metric_name)
+ subject.public_send(metric_name)
end
end
context 'metric is cached' do
before do
- subject.send(metric_name)
+ subject.public_send(metric_name)
end
it 'returns cached metric' do
expect(subject).not_to receive(:init_metric)
- subject.send(metric_name)
+ subject.public_send(metric_name)
end
end
end