Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routing_spec.rb « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01d5acfc15b7ef244be147ba51fab4bfc92e2045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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