We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b6ded8 commit a0178b8Copy full SHA for a0178b8
spec/spec_helper.rb
@@ -52,7 +52,8 @@ def self.run_all(reporter = nil)
52
config.order = :random
53
Kernel.srand config.seed
54
55
- config.shared_context_metadata_behavior = :apply_to_host_groups
+ # shared_context_metadata_behavior is removed in RSpec 4
56
+ config.shared_context_metadata_behavior = :apply_to_host_groups if config.respond_to?(:shared_context_metadata_behavior=)
57
58
# Zero monkey patching mode is the default and only mode in RSpec 4
59
config.disable_monkey_patching! if config.respond_to?(:disable_monkey_patching!)
0 commit comments