debian-mirror-gitlab/spec/helpers/routing/packages_helper_spec.rb
2023-01-13 15:02:22 +05:30

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