mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:11:11 +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:
@ -622,7 +622,7 @@ describe TopicsController do
|
||||
end
|
||||
|
||||
it "reviews the user for a promotion if they're new" do
|
||||
user.update_column(:trust_level, TrustLevel.levels[:newuser])
|
||||
user.update_column(:trust_level, TrustLevel[0])
|
||||
Promotion.any_instance.expects(:review)
|
||||
get :show, topic_id: topic.id, slug: topic.slug
|
||||
end
|
||||
|
Reference in New Issue
Block a user