2019-07-19 07:11:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-03 23:08:05 -04:00
|
|
|
RSpec.describe IdeController do
|
2019-07-19 07:11:27 -04:00
|
|
|
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)
|
|
|
|
|
2020-12-16 10:10:18 -05:00
|
|
|
get ide_url
|
2019-07-19 07:11:27 -04:00
|
|
|
end
|
|
|
|
end
|