debian-mirror-gitlab/spec/lib/gitlab/metrics/background_transaction_spec.rb
2020-05-25 16:23:42 +05:30

15 lines
393 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Metrics::BackgroundTransaction do
let(:test_worker_class) { double(:class, name: 'TestWorker') }
subject { described_class.new(test_worker_class) }
describe '#label' do
it 'returns labels based on class name' do
expect(subject.labels).to eq(controller: 'TestWorker', action: 'perform')
end
end
end