mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Internal renaming of elder,leader,regular,basic to numbers
Changed internals so trust levels are referred to with TrustLevel[1], TrustLevel[2] etc. This gives us much better flexibility naming trust levels, these names are meant to be controlled by various communities.
This commit is contained in:
parent
c8d3ffb1ee
commit
59d04c0695
49 changed files with 276 additions and 274 deletions
|
@ -13,12 +13,12 @@ describe CategoryFeaturedTopic do
|
|||
it "should feature topics for a secure category" do
|
||||
|
||||
# so much dancing, I am thinking fixures make sense here.
|
||||
user.change_trust_level!(:basic)
|
||||
user.change_trust_level!(TrustLevel[1])
|
||||
|
||||
category.set_permissions(:trust_level_1 => :full)
|
||||
category.save
|
||||
|
||||
uncategorized_post = PostCreator.create(user, raw: "this is my new post 123 post", title: "hello world")
|
||||
_uncategorized_post = PostCreator.create(user, raw: "this is my new post 123 post", title: "hello world")
|
||||
|
||||
CategoryFeaturedTopic.feature_topics_for(category)
|
||||
CategoryFeaturedTopic.count.should == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue