diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-10-13 04:07:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 21:07:30 +0200 |
commit | 7afc6a630c76fb071bd189af3ac1366efc82f819 (patch) | |
tree | d9d1b096db2c9fd7c3c8e766ee768611e21c7630 /spec | |
parent | 5f6c0d63e3f9e90d57204126409bbda539e352d8 (diff) |
Redirect non-logged-in user to owner statuses on single user mode (#19333)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/views/statuses/show.html.haml_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/views/statuses/show.html.haml_spec.rb b/spec/views/statuses/show.html.haml_spec.rb index a69843216..eeea2f698 100644 --- a/spec/views/statuses/show.html.haml_spec.rb +++ b/spec/views/statuses/show.html.haml_spec.rb @@ -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 |