mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Post does not save if it contains a tag link
This commit is contained in:
@ -421,4 +421,15 @@ HTML
|
||||
end
|
||||
end
|
||||
|
||||
describe "tag and category links" do
|
||||
|
||||
it "produces tag links" do
|
||||
# TODO where is our tags table?
|
||||
TopicCustomField.create!(topic_id: 1, name: DiscourseTagging::TAGS_FIELD_NAME, value: "known")
|
||||
# TODO does it make sense to generate hashtags for tags that are missing in action?
|
||||
expect(PrettyText.cook(" #unknown::tag #known::tag")).to match_html("<p> <span class=\"hashtag\">#unknown::tag</span> <a class=\"hashtag\" href=\"http://test.localhost/tags/known\">#<span>known</span></a></p>")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user