blob: 912bfda6d332460418da691ca721d388f4c0be63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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
|