@@ -56,7 +56,7 @@ def self.add_test_type_configurations(config)
5656 end
5757
5858 # @private
59- def self . initialize_configuration ( config ) # rubocop:disable Metrics/MethodLength
59+ def self . initialize_configuration ( config ) # rubocop:disable Metrics/MethodLength,Metrics/CyclomaticComplexity
6060 config . backtrace_exclusion_patterns << /vendor\/ /
6161 config . backtrace_exclusion_patterns << %r{lib/rspec/rails}
6262
@@ -109,6 +109,7 @@ def render_views?
109109 rendering_views?
110110 end
111111
112+ undef :rendering_views? if respond_to? ( :rendering_views? )
112113 def rendering_views?
113114 !!rendering_views
114115 end
@@ -117,22 +118,27 @@ def rendering_views?
117118 # to the bug fix in rspec/rspec-core#2736, note some of these
118119 # predicates are a bit nonsensical, but they exist for backwards
119120 # compatibility, we can tidy these up in `rspec-rails` 5.
121+ undef :fixture_path? if respond_to? ( :fixture_path? )
120122 def fixture_path?
121123 !!fixture_path
122124 end
123125
126+ undef :global_fixtures? if respond_to? ( :global_fixtures? )
124127 def global_fixtures?
125128 !!global_fixtures
126129 end
127130
131+ undef :infer_base_class_for_anonymous_controllers? if respond_to? ( :infer_base_class_for_anonymous_controllers? )
128132 def infer_base_class_for_anonymous_controllers?
129133 !!infer_base_class_for_anonymous_controllers
130134 end
131135
136+ undef :use_instantiated_fixtures? if respond_to? ( :use_instantiated_fixtures? )
132137 def use_instantiated_fixtures?
133138 !!use_instantiated_fixtures
134139 end
135140
141+ undef :use_transactional_fixtures? if respond_to? ( :use_transactional_fixtures? )
136142 def use_transactional_fixtures?
137143 !!use_transactional_fixtures
138144 end
0 commit comments