Remove warnings for already defined methods
This commit is contained in:
parent
cd93d7175e
commit
682a579b25
@ -314,7 +314,9 @@ def pro; end
|
||||
|
||||
non_conflicts.each do |name|
|
||||
assert_nothing_raised do
|
||||
klass.class_eval { scope name, ->{ where(approved: true) } }
|
||||
silence_warnings do
|
||||
klass.class_eval { scope name, ->{ where(approved: true) } }
|
||||
end
|
||||
end
|
||||
|
||||
assert_nothing_raised do
|
||||
|
Loading…
Reference in New Issue
Block a user