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
path: root/spec
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-11-07 21:23:52 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-11-07 21:23:52 +0300
commit90edcb45cda088927f4af378c0aa0e7d7004f582 (patch)
treec87ae449f801136f1ff4c42acf93582d81ffc94e /spec
parentb16c2ef7d5c4e7696b51c7e410381b316be128a6 (diff)
Make BackgroundTransaction#labels public
as are all other Transaction implementations
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/metrics/background_transaction_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/metrics/background_transaction_spec.rb b/spec/lib/gitlab/metrics/background_transaction_spec.rb
index 96052b8dc2f..17445fe6de5 100644
--- a/spec/lib/gitlab/metrics/background_transaction_spec.rb
+++ b/spec/lib/gitlab/metrics/background_transaction_spec.rb
@@ -10,4 +10,10 @@ describe Gitlab::Metrics::BackgroundTransaction do
expect(subject.action).to eq('TestWorker#perform')
end
end
+
+ describe '#label' do
+ it 'returns labels based on class name' do
+ expect(subject.labels).to eq(controller: 'TestWorker', action: 'perform')
+ end
+ end
end