debian-mirror-gitlab/spec/finders/data_transfer/mocked_transfer_finder_spec.rb
2023-06-20 00:43:36 +05:30

22 lines
591 B
Ruby

# 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