Commit Graph
25 Commits
Author SHA1 Message Date
ysksnandEugen Rochko 1104ac35d3 Add tests for Streamable (#5771) 2017-11-24 14:42:57 +01:00
ysksnandEugen Rochko 8c0e77d688 Add tests for AccountRelationshipsPresenter (#5805) 2017-11-24 14:41:04 +01:00
ysksnandYamagishi Kazutoshi 6f609dc4b4 Add tests for Remotable (#5768) 2017-11-21 13:59:36 +09:00
ysksnandEugen Rochko 2590aac863 Add tests for AccountInteractions (#5751)
* Add tests for class methods of AccountInteractions

* Add tests for instance methods of AccountInteractions
2017-11-19 04:16:14 +01:00
ysksnandEugen Rochko 8f638a2bf2 Add a test for Settings::Extend#settings (#5720) 2017-11-19 04:15:32 +01:00
ysksnandEugen Rochko 9d9b1aff1e Add tests for Status#title (#5718) 2017-11-19 04:15:17 +01:00
ysksnandYamagishi Kazutoshi 9dd5e329ab Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
ysksnandEugen Rochko 9e3d24a150 Fix AccountFinderConcern::AccountFinder#with_usernames (#5722) 2017-11-16 12:13:03 +01:00
ysksnandYamagishi Kazutoshi 556c07df1f Add tests for Status#verb (#5717) 2017-11-16 15:46:29 +09:00
ysksnandYamagishi Kazutoshi 3023725936 Add tests for Status#hidden? (#5719) 2017-11-16 11:07:27 +09:00
ysksnandEugen Rochko 19e8b861a2 Delegate some methods of User to @settings (#5706)
* Move some tests of User into Settings::ScopedSettings

* Add a test for User@settings
2017-11-15 16:05:20 +01:00
ysksnandEugen Rochko 7d7df877ef Add a test for Tag#to_param (#5705) 2017-11-15 16:04:41 +01:00
ysksnandEugen Rochko 6d7e05ec1f Add tests for StreamEntry (#5687)
* Add tests for StreamEntry

- `#object_type`
- `#verb`
- `#mentions`

* Fix to test results instead of implementations
2017-11-15 02:00:58 +01:00
ysksnandEugen Rochko 48e27c47a7 Add a test for SiteUpload#cache_key (#5685) 2017-11-14 20:44:11 +01:00
ysksnandYamagishi Kazutoshi 4112a0631f Add tests for Setting (#5683) 2017-11-14 11:08:04 +09:00
ysksnandYamagishi Kazutoshi 60f247c2e7 Add tests for SessionActivation (#5668)
* Fabricate SessionActivation

not only user_id but user association.

* Add tests for SessionActivation
2017-11-13 09:54:48 +09:00
ysksnandYamagishi Kazutoshi 2fb722397d Add tests for RemoteProfile (#5665) 2017-11-12 16:23:31 +09:00
ysksnandEugen Rochko 56720ba590 Add tests for RemoteFollow (#5651)
* Add tests for RemoteFollow.initialize

* Add tests for RemoteFollow#valid?

* Add tests for RemoteFollow#subscribe_address_for
2017-11-10 16:56:02 +01:00
ysksnandEugen Rochko 07cca6e364 Add tests for Notification (#5640)
* Add tests for Notification#target_status

* Add tests for Notification#browserable?

* Add tests for Notification.reload_stale_associations!
2017-11-09 14:37:10 +01:00
ysksnandEugen Rochko 54b42901df 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.
2017-11-09 14:36:52 +01:00
ysksnandYamagishi Kazutoshi 64cc129225 Add tests for MediaAttachment (#5620)
- `#local?`
- `#needs_redownload?`
- `#to_param`
2017-11-08 15:29:07 +09:00
ysksnandYamagishi Kazutoshi 97fc2da2e0 Add tests for CustomEmoji#local? and #object_type (#5621) 2017-11-08 15:28:17 +09:00
ysksnandYamagishi Kazutoshi d307ee79e9 Implement tests for Account#refresh! (#5601) 2017-11-06 13:54:41 +09:00
ysksnandYamagishi Kazutoshi cf01326cc1 Add test for Account#save_with_optional_media! (#5603)
There was a test when some of the properties are invalid, but none when all
of them are valid.
2017-11-06 13:54:12 +09:00
ysksnandYamagishi Kazutoshi 15c0f6ae56 Implement tests for Account#possibly_stale? (#5591) 2017-11-05 17:20:05 +09:00