]> cat aescling's git repositories - mastodon.git/commit
Add and Remove tests for FollowRequest (#5622)
authorysksn <bluewhale1982@gmail.com>
Thu, 9 Nov 2017 13:36:52 +0000 (22:36 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 9 Nov 2017 13:36:52 +0000 (14:36 +0100)
commit54b42901df938257ae660168958fffe58b1a0287
treea5842b3b5cc335c22c1d4a1612d856838fe2b70f
parentd200e041fe50b5c9253991a8884791c75255d457
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.
app/models/follow_request.rb
spec/models/follow_request_spec.rb