debian-mirror-gitlab/spec/support/view_component.rb

15 lines
450 B
Ruby
Raw Normal View History

2022-05-07 20:08:51 +05:30
# 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
2022-11-25 23:54:43 +05:30
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
2022-05-07 20:08:51 +05:30
end