We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
where
1 parent 572137c commit 284bcd3Copy full SHA for 284bcd3
lib/rspec/parameterized/core.rb
@@ -39,6 +39,10 @@ def initialize(arg_names, &block)
39
# end
40
#
41
def where(*args, &b)
42
+ if @parameter
43
+ format = ->(b) { b.source_location&.join(':') || '?' }
44
+ warn "#{format[b]}: `where` redefined. Discarding old definition at #{format[@parameter.block]}."
45
+ end
46
47
if args.size == 1 && args[0].instance_of?(Hash)
48
naming_func = args.first.delete(:case_names)
0 commit comments