mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 11:15:43 +08:00
fix specs
This commit is contained in:
parent
4536f772c1
commit
e145e34ebe
@ -97,6 +97,8 @@ describe PostCreator do
|
|||||||
"/users/#{admin.username}",
|
"/users/#{admin.username}",
|
||||||
"/unread/#{admin.id}",
|
"/unread/#{admin.id}",
|
||||||
"/unread/#{admin.id}",
|
"/unread/#{admin.id}",
|
||||||
|
"/latest",
|
||||||
|
"/latest",
|
||||||
"/topic/#{created_post.topic_id}",
|
"/topic/#{created_post.topic_id}",
|
||||||
"/topic/#{created_post.topic_id}"
|
"/topic/#{created_post.topic_id}"
|
||||||
].sort
|
].sort
|
||||||
@ -112,6 +114,9 @@ describe PostCreator do
|
|||||||
p = creator.create
|
p = creator.create
|
||||||
end
|
end
|
||||||
|
|
||||||
|
latest = messages.find{|m| m.channel == "/latest"}
|
||||||
|
latest.should_not be_nil
|
||||||
|
|
||||||
latest = messages.find{|m| m.channel == "/new"}
|
latest = messages.find{|m| m.channel == "/new"}
|
||||||
latest.should_not be_nil
|
latest.should_not be_nil
|
||||||
|
|
||||||
@ -121,7 +126,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 == 4
|
messages.length.should == 5
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'extracts links from the post' do
|
it 'extracts links from the post' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user