debian-mirror-gitlab/spec/presenters/packages/nuget/packages_versions_presenter_spec.rb

15 lines
387 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Packages::Nuget::PackagesVersionsPresenter do
let_it_be(:packages) { create_list(:nuget_package, 5) }
let_it_be(:presenter) { described_class.new(::Packages::Package.all) }
describe '#versions' do
subject { presenter.versions }
it { is_expected.to match_array(packages.map(&:version).sort) }
end
end