mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 23:55:51 +08:00
Minor cleanup of /users/
rename
This commit is contained in:
parent
14410b71fb
commit
7b6242bfbb
@ -952,7 +952,7 @@ describe Post do
|
|||||||
|
|
||||||
it "will unhide the post but will keep the topic invisible/unlisted" do
|
it "will unhide the post but will keep the topic invisible/unlisted" do
|
||||||
hidden_topic = Fabricate(:topic, visible: false)
|
hidden_topic = Fabricate(:topic, visible: false)
|
||||||
_first_post = create_post(topic: hidden_topic)
|
create_post(topic: hidden_topic)
|
||||||
second_post = create_post(topic: hidden_topic)
|
second_post = create_post(topic: hidden_topic)
|
||||||
|
|
||||||
second_post.update_columns(hidden: true, hidden_at: Time.now, hidden_reason_id: 1)
|
second_post.update_columns(hidden: true, hidden_at: Time.now, hidden_reason_id: 1)
|
||||||
|
@ -31,3 +31,10 @@ test("userPath", assert => {
|
|||||||
assert.equal(userPath('eviltrout'), '/u/eviltrout');
|
assert.equal(userPath('eviltrout'), '/u/eviltrout');
|
||||||
assert.equal(userPath('hp.json'), '/u/hp.json');
|
assert.equal(userPath('hp.json'), '/u/hp.json');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("userPath with BaseUri", assert => {
|
||||||
|
Discourse.BaseUri = "/forum";
|
||||||
|
assert.equal(userPath(), '/forum/u');
|
||||||
|
assert.equal(userPath('eviltrout'), '/forum/u/eviltrout');
|
||||||
|
assert.equal(userPath('hp.json'), '/forum/u/hp.json');
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user