mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:57:15 +08:00
Convert server side paths to use /u/
This commit is contained in:
@ -121,8 +121,8 @@ describe PostCreator do
|
||||
|
||||
# 2 for topic, one to notify of new topic another for tracking state
|
||||
expect(messages.map{|m| m.channel}.sort).to eq([ "/new",
|
||||
"/users/#{admin.username}",
|
||||
"/users/#{admin.username}",
|
||||
"/u/#{admin.username}",
|
||||
"/u/#{admin.username}",
|
||||
"/unread/#{admin.id}",
|
||||
"/unread/#{admin.id}",
|
||||
"/latest",
|
||||
@ -153,7 +153,7 @@ describe PostCreator do
|
||||
read = messages.find{|m| m.channel == "/unread/#{p.user_id}"}
|
||||
expect(read).not_to eq(nil)
|
||||
|
||||
user_action = messages.find{|m| m.channel == "/users/#{p.user.username}"}
|
||||
user_action = messages.find{|m| m.channel == "/u/#{p.user.username}"}
|
||||
expect(user_action).not_to eq(nil)
|
||||
|
||||
expect(messages.length).to eq(5)
|
||||
|
Reference in New Issue
Block a user