Commit 3d210bc9 authored by Imre Farkas's avatar Imre Farkas

Merge branch '293866-ide_controller_spec' into 'master'

Replace spec/controllers/ide_controller_spec.rb with request spec

See merge request gitlab-org/gitlab!50075
parents 9cb4384e 23be9be8
---
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