debian-mirror-gitlab/spec/support/view_component.rb
2022-11-25 23:54:43 +05:30

15 lines
450 B
Ruby

# 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