mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 07:38:03 +08:00
Correct broken specs
This commit is contained in:
@ -91,11 +91,13 @@ describe PostCreator do
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# 2 for topic, one to notify of new topic another for tracking state
|
||||||
messages.map{|m| m.channel}.sort.should == [ "/new",
|
messages.map{|m| m.channel}.sort.should == [ "/new",
|
||||||
"/users/#{admin.username}",
|
"/users/#{admin.username}",
|
||||||
"/users/#{admin.username}",
|
"/users/#{admin.username}",
|
||||||
"/unread/#{admin.id}",
|
"/unread/#{admin.id}",
|
||||||
"/unread/#{admin.id}",
|
"/unread/#{admin.id}",
|
||||||
|
"/topic/#{created_post.topic_id}",
|
||||||
"/topic/#{created_post.topic_id}"
|
"/topic/#{created_post.topic_id}"
|
||||||
].sort
|
].sort
|
||||||
admin_ids = [Group[:admins].id]
|
admin_ids = [Group[:admins].id]
|
||||||
@ -119,7 +121,7 @@ describe PostCreator do
|
|||||||
user_action = messages.find{|m| m.channel == "/users/#{p.user.username}"}
|
user_action = messages.find{|m| m.channel == "/users/#{p.user.username}"}
|
||||||
user_action.should_not be_nil
|
user_action.should_not be_nil
|
||||||
|
|
||||||
messages.length.should == 3
|
messages.length.should == 4
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'extracts links from the post' do
|
it 'extracts links from the post' do
|
||||||
|
Reference in New Issue
Block a user