blob: fa5d34fed732cbfcf844bbc18749cf621cbb615f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# 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
|