File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ module Fixtures
4343 if ::Rails . version . to_f >= 7.1
4444 def fixtures ( *args )
4545 super . tap do
46- fixture_sets . each_key do |fixture_name |
47- proxy_method_warning_if_called_in_before_context_scope ( fixture_name )
46+ fixture_sets . each_pair do |method_name , fixture_name |
47+ proxy_method_warning_if_called_in_before_context_scope ( method_name , fixture_name )
4848 end
4949 end
5050 end
5151
52- def proxy_method_warning_if_called_in_before_context_scope ( fixture_name )
53- define_method ( fixture_name ) do |*args , **kwargs , &blk |
52+ def proxy_method_warning_if_called_in_before_context_scope ( method_name , fixture_name )
53+ define_method ( method_name ) do |*args , **kwargs , &blk |
5454 if RSpec . current_scope == :before_context_hook
5555 RSpec . warn_with ( "Calling fixture method in before :context " )
5656 else
You can’t perform that action at this time.
0 commit comments