debian-mirror-gitlab/spec/helpers/routing/packages_helper_spec.rb
2023-01-12 18:35:48 +00:00

13 lines
335 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ::Routing::PackagesHelper do
describe '#package_path' do
let(:package) { build_stubbed(:package) }
it "creates package's path" do
expect(helper.package_path(package)).to eq("/#{package.project.full_path}/-/packages/#{package.id}")
end
end
end