8c42a0eac0
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
25 lines
577 B
Ruby
25 lines
577 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Gitlab::Routing do
|
|
context 'when module is included' do
|
|
subject do
|
|
Class.new.include(described_class).new
|
|
end
|
|
|
|
it 'makes it possible to access url helpers' do
|
|
expect(subject).to respond_to(:namespace_project_path)
|
|
end
|
|
end
|
|
|
|
context 'when module is not included' do
|
|
subject do
|
|
Class.new.include(described_class.url_helpers).new
|
|
end
|
|
|
|
it 'exposes url helpers module through a method' do
|
|
expect(subject).to respond_to(:namespace_project_path)
|
|
end
|
|
end
|
|
end
|