Skip to content

Commit

Permalink
chore: update rspec config to support testing view components
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyRet committed Oct 7, 2024
1 parent 9afc778 commit 3213a88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
require "capybara/rspec"
require "view_component/test_helpers"
require "view_component/system_test_helpers"

RSpec.configure do |config|
config.include ViewComponent::TestHelpers, type: :component
config.include ViewComponent::SystemTestHelpers, type: :component
config.include Capybara::RSpecMatchers, type: :component

config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
Expand Down

0 comments on commit 3213a88

Please sign in to comment.