Redirect non-logged-in user to owner statuses on single user mode (#19333)

This commit is contained in:
Yamagishi Kazutoshi
2022-10-13 04:07:30 +09:00
committed by GitHub
parent 5f6c0d63e3
commit 7afc6a630c
6 changed files with 77 additions and 20 deletions

View File

@ -12,6 +12,7 @@ describe 'statuses/show.html.haml', without_verify_partial_doubles: true do
allow(view).to receive(:local_time)
allow(view).to receive(:local_time_ago)
allow(view).to receive(:current_account).and_return(nil)
allow(view).to receive(:single_user_mode?).and_return(false)
assign(:instance_presenter, InstancePresenter.new)
end