Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 3589ab5

Browse files
committed
Enable new config option in generated spec_helper.rb.
1 parent ed2d59c commit 3589ab5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/rspec/core/project_initializer/spec/spec_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
mocks.verify_partial_doubles = true
4141
end
4242

43+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44+
# have no way to turn it off -- the option exists only for backwards
45+
# compatibility in RSpec 3). It causes shared context metadata to be
46+
# inherited by the metadata hash of host groups and examples, rather than
47+
# triggering implicit auto-inclusion in groups with matching metadata.
48+
config.shared_context_metadata_behavior = :apply_to_host_groups
49+
4350
# The settings below are suggested to provide a good initial experience
4451
# with RSpec, but feel free to customize to your heart's content.
4552
=begin

0 commit comments

Comments
 (0)