Commit 23be9be8 authored by Takuya Noguchi's avatar Takuya Noguchi

Replace spec/controllers/ide_controller_spec.rb with request spec

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent c9f1648c
---
title: Replace spec/controllers/ide_controller_spec.rb with request spec
merge_request: 50075
author: Takuya Noguchi
type: other
......@@ -12,6 +12,6 @@ RSpec.describe IdeController do
it 'increases the views counter' do
expect(Gitlab::UsageDataCounters::WebIdeCounter).to receive(:increment_views_count)
get :index
get ide_url
end
end
......@@ -142,7 +142,9 @@ RSpec.configure do |config|
config.include TestEnv
config.include FileReadHelpers
config.include Devise::Test::ControllerHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :view
config.include Devise::Test::IntegrationHelpers, type: :feature
config.include Devise::Test::IntegrationHelpers, type: :request
config.include LoginHelpers, type: :feature
config.include SearchHelpers, type: :feature
config.include WaitHelpers, type: :feature
......@@ -150,7 +152,6 @@ RSpec.configure do |config|
config.include EmailHelpers, :mailer, type: :mailer
config.include Warden::Test::Helpers, type: :request
config.include Gitlab::Routing, type: :routing
config.include Devise::Test::ControllerHelpers, type: :view
config.include ApiHelpers, :api
config.include CookieHelper, :js
config.include InputHelper, :js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment