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

value_stream_actions_spec.rb « cycle_analytics « analytics « concerns « controllers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 246119a811884ef69dfd8f6513f45d8893d51db9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe Analytics::CycleAnalytics::ValueStreamActions, type: :controller,
feature_category: :planning_analytics do
  subject(:controller) do
    Class.new(ApplicationController) do
      include Analytics::CycleAnalytics::ValueStreamActions

      def call_namespace
        namespace
      end
    end
  end

  describe '#namespace' do
    it 'raises NotImplementedError' do
      expect { controller.new.call_namespace }.to raise_error(NotImplementedError)
    end
  end
end