mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
introduce Enum
This commit is contained in:
parent
0c8c41b131
commit
0c99dea153
45 changed files with 242 additions and 216 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue