Skip to content

Commit 0b88ef6

Browse files
committed
RSpec: Configure spec type inference
Example: the spec/features/ files get the RSpec Metadata "type: :feature" automatically. RSpec docs mentioning this: https://rspec.info/features/8-0/rspec-rails/feature-specs/feature-spec/
1 parent 9ac6a7c commit 0b88ef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def self.branch_coverage?
4242
config.include LoginHelpers
4343
config.include ActiveSupport::Testing::TimeHelpers
4444
config.include SelectFromChosen, type: :feature
45+
config.infer_spec_type_from_file_location!
4546
config.use_transactional_fixtures = false
4647
config.infer_base_class_for_anonymous_controllers = false
4748
config.order = 'random'

0 commit comments

Comments
 (0)