Daigo 3 Dango
e1142e190b
Redirect to streaming_api_base_url ( #3579 )
...
* Redirect to streaming_api_base_url
When Rails receives a request to streaming API, it most likely
means that there is another host which is configured to respond
to it. This is to redirect clients to that host if
`STREAMING_API_BASE_URL` is set as another host.
* Use the new Ruby 1.9 hash syntax
2017-06-05 12:09:29 +02:00
Yamagishi Kazutoshi
9df077e370
Fix spec for #2388 ( #3526 )
2017-06-03 14:40:55 +02:00
Akihiko Odaki (@fn_aki@pawoo.net)
2c511bbad4
Spec response for forgery ( #3248 )
...
Remove protect_from_forgery in ApiController, which is disabled by the
following skip_before_action, as well.
2017-06-01 20:56:55 +02:00
Matt Jankowski
1066fd1ab5
Spec coverage and refactor for the api/v1/accounts controllers ( #3451 )
2017-05-31 21:36:24 +02:00
Matt Jankowski
81ce4e4318
Move admin/pubsubhubbub controller to admin/subscriptions ( #3442 )
2017-05-31 20:39:35 +02:00
Matt Jankowski
0985a9ff7d
Improve spec coverage and clean up api/v1/blocks controller ( #3464 )
2017-05-31 20:34:51 +02:00
Matt Jankowski
ae721f376a
Improve spec coverage and clean up api/v1/follow_requests controller ( #3465 )
2017-05-31 20:32:11 +02:00
Matt Jankowski
e32b9ecbf6
Improve spec coverage and clean up api/v1/domain_blocks controller ( #3466 )
2017-05-31 20:31:14 +02:00
Matt Jankowski
6237abaaa3
Improve spec coverage and clean up api/v1/favourites controller ( #3472 )
2017-05-31 20:30:39 +02:00
Matt Jankowski
3e95a6c9b7
Improve spec coverage and clean up api/v1/mutes controller ( #3481 )
2017-05-31 20:27:34 +02:00
Yamagishi Kazutoshi
b652c52992
Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) ( #3479 )
...
* Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail)
* use climate_control
2017-05-31 17:09:17 +02:00
Matt Jankowski
8b69d8d46d
Improve spec coverage and clean up api/v1/media controller ( #3467 )
2017-05-30 21:11:29 -04:00
Matt Jankowski
5a54a5ba69
Clean up api/subscriptions controller ( #3448 )
2017-05-31 02:15:09 +02:00
Matt Jankowski
4e89226243
Improve api oembed controller ( #3450 )
...
* Add StreamEntryFinder class to parse URLs
* Use StreamEntryFinder and clean up api/oembed controller
2017-05-30 16:30:06 -04:00
Matt Jankowski
0ee8f559ec
Clean up api/salmon controller ( #3449 )
2017-05-30 16:28:58 -04:00
Matt Jankowski
18c81c74e5
Remove exports/base controller in favor of shared concern ( #3444 )
2017-05-30 19:06:01 +02:00
Akihiko Odaki
6f064d0e65
Use around hook to restore context in Admin::SettingsController spec ( #3428 )
2017-05-30 06:32:09 -04:00
Jack Jennings
faf53a5a3e
Extract authorization policy for viewing statuses ( #3150 )
2017-05-29 18:22:22 +02:00
Akihiko Odaki
ff2bfea0b3
Remove methods from ObfuscateFilename and spec ( #3347 )
...
* Remove methods from ObfuscateFilename
* Spec ObfuscateFilename
2017-05-29 18:14:16 +02:00
Akihiko Odaki
587f2d0b1f
Spec Auth::ConfirmationsController ( #3348 )
2017-05-29 18:13:11 +02:00
Akihiko Odaki
a111604729
Spec AccountControllerConcern ( #3349 )
2017-05-29 18:12:54 +02:00
Akihiko Odaki
e41d7875d7
Cover Admin::ReportsController more ( #3346 )
2017-05-29 18:12:34 +02:00
Akihiko Odaki
9481b20b23
Cover InstancesController more ( #3342 )
2017-05-29 18:12:17 +02:00
Akihiko Odaki
46a60e19ef
Cover Admin::SuspensionsController more ( #3350 )
2017-05-29 18:11:16 +02:00
Akihiko Odaki
503298d89b
Spec Auth::PasswordsController ( #3352 )
2017-05-29 18:10:50 +02:00
Akihiko Odaki
1cb145578b
Spec Admin::ResetsController calls send_reset_password_instructions ( #3354 )
2017-05-29 18:09:17 +02:00
Akihiko Odaki
2b299efbbc
Spec #destroy feature of Admin::TwoFactorAuthenticationsController ( #3355 )
2017-05-29 18:08:58 +02:00
Akihiko Odaki
07c90d0b0d
Coever Admin::SilencesController more ( #3356 )
2017-05-29 18:08:42 +02:00
Akihiko Odaki
e48d2dfd87
Cover Settings::ExportsController more ( #3358 )
2017-05-29 18:08:26 +02:00
Akihiko Odaki
43722d1add
Cover Oauth::AuthorizedApplicationsController ( #3359 )
2017-05-29 18:08:05 +02:00
Akihiko Odaki
cdcb550ce9
Cover Oauth::AuthorizationsController more ( #3361 )
2017-05-29 18:07:39 +02:00
Akihiko Odaki
013825b7b0
Cover Settings::TwoFactorAuthenticationsController more ( #3376 )
2017-05-29 18:07:07 +02:00
Akihiko Odaki
bbaa9dda56
Cover WellKnown::HostMetaController more ( #3382 )
2017-05-29 18:05:30 +02:00
Akihiko Odaki
bb41a6ad80
Cover Settings::TwoFactorAuthentication::RecoveryCodesController more ( #3383 )
2017-05-29 18:05:20 +02:00
Akihiko Odaki
f868fcb154
Spec Settings::Exports ( #3384 )
...
* Spec output of Settings::Exports::BlockedAccountsController
* Spec output of Settings::Exports::FollowingAccountsController
* Spec output of Settings::Exports::MutedAccountsController
* Spec Settings::Exports::BaseController
This commit removes duplicate specs in classes inheriting
Settings::Exports::BaseController as well.
2017-05-29 18:05:01 +02:00
Akihiko Odaki
7300379c81
Cover WellKnown::WebfingerController more ( #3385 )
2017-05-29 18:04:37 +02:00
Akihiko Odaki
820e97af27
Cover Settings::TwoFactorAuthentication::ConfirmationsController more ( #3386 )
2017-05-29 18:04:00 +02:00
Akihiko Odaki
437ef29afd
Cover Admin::PubSubHubHubController more ( #3343 )
2017-05-29 18:01:37 +02:00
Atsushi Yamamoto
4547e3585a
Add preference setting for delete toot modal ( #3368 )
...
* Set delete_modal preference to true by default
* Does not show confirmation modal if delete_modal is false
* Add ja translation for preference setting page
2017-05-29 17:56:13 +02:00
Akinori MUSHA
8a5d3b2e5d
Go to root after login in single user mode ( #3289 )
...
In single user mode, visitors are redirected to the single user's
profile page. So, if you are the owner without a session, you start
from that page, click the login button and authenticate yourself
expecting you'll soon get started with the home page, but in reality
you'll get redirected back to where you started from -- your own
profile page.
This fixes the behavior by redirecting you home after login if you
have started from your own profile page.
2017-05-26 14:14:03 +02:00
Akihiko Odaki
5d9513aaea
Spec Admin::BaseController ( #3328 )
2017-05-26 14:13:26 +02:00
Akihiko Odaki
9efb491366
Cover TagsController more ( #3306 )
2017-05-25 16:07:38 +02:00
Akihiko Odaki
6af012aae4
Cover HomeController more ( #3258 )
2017-05-23 23:37:24 +02:00
Eugen Rochko
b886ecea5c
Fix Devise destroy method being available to delete user record ( #3266 )
...
(You may think that we need account deletions, but this way would've just orphaned the db records)
2017-05-23 21:32:42 +02:00
alpaca-tc
46ca699d72
Toggle sensitive from admin page ( #3261 )
2017-05-23 19:45:43 +02:00
Matt Jankowski
fecc2c2f47
Refactor of API timeline actions ( #3263 )
...
- Increase coverage to exercise all parts of each action
- Move into namespace to share common code
- Misc refactor of each action for smaller methods, simpler code
2017-05-23 18:11:39 +02:00
Akihiko Odaki
855082f935
Cover StatusesController more ( #3259 )
2017-05-23 16:34:28 +02:00
Akihiko Odaki
d670290506
Cover StreamEntriesController more and remove redundant instructions ( #3257 )
...
* Cover StreamEntriesController more
* Remove redundant instructions in StreamEntriesController
2017-05-23 15:04:23 +02:00
Akihiko Odaki
1cf385646a
Spec AuthorizeFollowsController assigns @account ( #3246 )
...
@account is used by the view.
2017-05-23 13:12:45 +02:00
Akihiko Odaki
4f023cb001
Introduce recent to Follow ( #3247 )
...
Introduce recent to Follow, as Account and other models have.
This change also adds specs for the scope and the dependents.
2017-05-23 13:12:19 +02:00