debian-mirror-gitlab/spec/presenters/packages/nuget/packages_versions_presenter_spec.rb
2020-08-09 17:44:08 +05:30

14 lines
387 B
Ruby

# 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