about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-02 19:03:24 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-10-02 19:36:28 +0200
commite7ab476db240bb2fa09f975734923e2c6d04c3ee (patch)
tree7f61e1e9999dd3aa5b724cef372d4416da0ccd05 /spec
parentbfc539cfb4f040fcffac740b36791c26c2a74119 (diff)
Revert server-side part of "Add logged-out access to the web UI"
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/permalink_redirector_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/permalink_redirector_spec.rb b/spec/lib/permalink_redirector_spec.rb
index abda57da4..b916b33b2 100644
--- a/spec/lib/permalink_redirector_spec.rb
+++ b/spec/lib/permalink_redirector_spec.rb
@@ -21,7 +21,7 @@ describe PermalinkRedirector do
 
     it 'returns path for legacy tag links' do
       redirector = described_class.new('web/timelines/tag/hoge')
-      expect(redirector.redirect_path).to be_nil
+      expect(redirector.redirect_path).to eq '/tags/hoge'
     end
 
     it 'returns path for pretty account links' do
@@ -36,7 +36,7 @@ describe PermalinkRedirector do
 
     it 'returns path for pretty tag links' do
       redirector = described_class.new('web/tags/hoge')
-      expect(redirector.redirect_path).to be_nil
+      expect(redirector.redirect_path).to eq '/tags/hoge'
     end
   end
 end