gitlab-org--gitlab-foss/spec/support/view_component.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
450 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'view_component/test_helpers'
RSpec.configure do |config|
config.include ViewComponent::TestHelpers, type: :component
config.include Capybara::RSpecMatchers, type: :component
config.include Devise::Test::ControllerHelpers, type: :component
config.before(:each, type: :component) do
@request = controller.request
end
config.include_context 'when page has no HTML escapes', type: :component
end