Add and Remove tests for FollowRequest (#5622)
* Add a test for FollowRequest#authorize! * Remove tests There is no need to test ActiveModel::Validations::ClassMethods#validates. * Make an alias of destroy! as reject! Instead of defining the method, make an alias of destroy! as reject! because of reducing test.
This commit is contained in:
parent
d200e041fe
commit
54b42901df
2 changed files with 10 additions and 21 deletions
|
@ -27,7 +27,5 @@ class FollowRequest < ApplicationRecord
|
|||
destroy!
|
||||
end
|
||||
|
||||
def reject!
|
||||
destroy!
|
||||
end
|
||||
alias reject! destroy!
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue