mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
introduce Enum
This commit is contained in:
@@ -266,7 +266,7 @@ describe TopicsController do
|
||||
end
|
||||
|
||||
it "reviews the user for a promotion if they're new" do
|
||||
user.update_column(:trust_level, TrustLevel.Levels[:new])
|
||||
user.update_column(:trust_level, TrustLevel.levels[:new])
|
||||
Promotion.any_instance.expects(:review)
|
||||
get :show, id: topic.id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user