summaryrefslogtreecommitdiff
path: root/spec/controllers/ide_controller_spec.rb
blob: 0462f9520d5e0ae991561ada77ee4ecfc19c3e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

describe IdeController do
  let(:user) { create(:user) }

  before do
    sign_in(user)
  end

  it 'increases the views counter' do
    expect(Gitlab::UsageDataCounters::WebIdeCounter).to receive(:increment_views_count)

    get :index
  end
end