]> cat aescling's git repositories - mastodon.git/commit
Coverage for remote follows (#2694)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Mon, 1 May 2017 22:44:23 +0000 (18:44 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 1 May 2017 22:44:23 +0000 (00:44 +0200)
commita4859446abea166ae55806169425646c1bd42f85
treea6f2abc6957d413d513b36de23627750508a80d3
parent7bffd16024303400e432c0db55314a2dd2d7fedd
Coverage for remote follows (#2694)

* Add coverage for create with empty acct value

* Add coverage for create with webfinger failure

* Add coverage for create with webfinger providing bad values

* Add coverage for create when webfinger is good

* Add coverage for session[:remote_follow] having data

* Simplify how remote follow pulls acct from session

* Remote follow behaves more like model

* Move the discovery portions of remote follow out of controller

* Check for suspended accounts
app/controllers/remote_follow_controller.rb
app/models/remote_follow.rb
spec/controllers/remote_follow_controller_spec.rb