Remove warnings for already defined methods

This commit is contained in:
Rafael Mendonça França 2014-02-01 16:27:58 -02:00
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