debian-mirror-gitlab/spec/finders/data_transfer/mocked_transfer_finder_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
591 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe DataTransfer::MockedTransferFinder, feature_category: :source_code_management do
describe '#execute' do
subject(:execute) { described_class.new.execute }
it 'returns mock data' do
expect(execute.first).to include(
date: '2023-01-01',
repository_egress: be_a(Integer),
artifacts_egress: be_a(Integer),
packages_egress: be_a(Integer),
registry_egress: be_a(Integer),
total_egress: be_a(Integer)
)
expect(execute.size).to eq(12)
end
end
end