mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 14:12:46 +08:00
Use the CategoryHashtag::SEPARATOR (#5258)
Use the CategoryHashtag::SEPARATOR like in the previous examples.
This commit is contained in:
parent
54455fa40b
commit
821ed23799
|
@ -28,7 +28,7 @@ describe CategoryHashtag do
|
||||||
child_category.update_attributes!(slug: "OraNGE")
|
child_category.update_attributes!(slug: "OraNGE")
|
||||||
|
|
||||||
expect(Category.query_from_hashtag_slug("apple")).to eq(nil)
|
expect(Category.query_from_hashtag_slug("apple")).to eq(nil)
|
||||||
expect(Category.query_from_hashtag_slug("apple:orange")).to eq(nil)
|
expect(Category.query_from_hashtag_slug("apple#{CategoryHashtag::SEPARATOR}orange")).to eq(nil)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user