diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-07 21:23:52 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-07 21:23:52 +0300 |
commit | 90edcb45cda088927f4af378c0aa0e7d7004f582 (patch) | |
tree | c87ae449f801136f1ff4c42acf93582d81ffc94e /spec | |
parent | b16c2ef7d5c4e7696b51c7e410381b316be128a6 (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.rb | 6 |
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 |