mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 13:59:07 +01:00
Include view_component
testing helpers
This commit is contained in:
parent
a58e902a01
commit
f97d98d00a
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,8 @@ require "rspec/rails"
|
||||||
require "rspec/its"
|
require "rspec/its"
|
||||||
require "devise"
|
require "devise"
|
||||||
require "rspec-sidekiq"
|
require "rspec-sidekiq"
|
||||||
|
require "view_component/test_helpers"
|
||||||
|
require "view_component/system_test_helpers"
|
||||||
|
|
||||||
# Requires supporting ruby files with custom matchers and macros, etc, in
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
||||||
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
||||||
|
@ -68,6 +70,8 @@ RSpec.configure do |config|
|
||||||
config.include Devise::Test::ControllerHelpers, type: :controller
|
config.include Devise::Test::ControllerHelpers, type: :controller
|
||||||
config.include Devise::Test::ControllerHelpers, type: :helper
|
config.include Devise::Test::ControllerHelpers, type: :helper
|
||||||
config.include Devise::Test::ControllerHelpers, type: :view
|
config.include Devise::Test::ControllerHelpers, type: :view
|
||||||
|
config.include ViewComponent::TestHelpers, type: :component
|
||||||
|
config.include ViewComponent::SystemTestHelpers, type: :component
|
||||||
end
|
end
|
||||||
|
|
||||||
Shoulda::Matchers.configure do |config|
|
Shoulda::Matchers.configure do |config|
|
||||||
|
|
Loading…
Reference in a new issue