File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ def render_views?
109
109
rendering_views?
110
110
end
111
111
112
+ undef :rendering_views? if respond_to? ( :rendering_views? )
112
113
def rendering_views?
113
114
!!rendering_views
114
115
end
@@ -117,22 +118,27 @@ def rendering_views?
117
118
# to the bug fix in rspec/rspec-core#2736, note some of these
118
119
# predicates are a bit nonsensical, but they exist for backwards
119
120
# compatibility, we can tidy these up in `rspec-rails` 5.
121
+ undef :fixture_path? if respond_to? ( :fixture_path? )
120
122
def fixture_path?
121
123
!!fixture_path
122
124
end
123
125
126
+ undef :global_fixtures? if respond_to? ( :global_fixtures? )
124
127
def global_fixtures?
125
128
!!global_fixtures
126
129
end
127
130
131
+ undef :infer_base_class_for_anonymous_controllers? if respond_to? ( :infer_base_class_for_anonymous_controllers? )
128
132
def infer_base_class_for_anonymous_controllers?
129
133
!!infer_base_class_for_anonymous_controllers
130
134
end
131
135
136
+ undef :use_instantiated_fixtures? if respond_to? ( :use_instantiated_fixtures? )
132
137
def use_instantiated_fixtures?
133
138
!!use_instantiated_fixtures
134
139
end
135
140
141
+ undef :use_transactional_fixtures? if respond_to? ( :use_transactional_fixtures? )
136
142
def use_transactional_fixtures?
137
143
!!use_transactional_fixtures
138
144
end
You can’t perform that action at this time.
0 commit comments