0
0
Fork 0

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:
ysksn 2017-11-09 22:36:52 +09:00 committed by Eugen Rochko
parent d200e041fe
commit 54b42901df
2 changed files with 10 additions and 21 deletions

View file

@ -27,7 +27,5 @@ class FollowRequest < ApplicationRecord
destroy!
end
def reject!
destroy!
end
alias reject! destroy!
end