mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
introduce Enum
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
Fabricator(:notification) do
|
||||
notification_type Notification.Types[:mentioned]
|
||||
notification_type Notification.types[:mentioned]
|
||||
data '{"poison":"ivy","killer":"croc"}'
|
||||
user
|
||||
topic {|attrs| Fabricate(:topic, user: attrs[:user] ) }
|
||||
end
|
||||
|
||||
Fabricator(:quote_notification, from: :notification) do
|
||||
notification_type Notification.Types[:quoted]
|
||||
notification_type Notification.types[:quoted]
|
||||
user
|
||||
topic {|attrs| Fabricate(:topic, user: attrs[:user] ) }
|
||||
end
|
||||
|
||||
Fabricator(:private_message_notification, from: :notification) do
|
||||
notification_type Notification.Types[:private_message]
|
||||
notification_type Notification.types[:private_message]
|
||||
user
|
||||
topic {|attrs| Fabricate(:topic, user: attrs[:user] ) }
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ Fabricator(:user) do
|
||||
username { sequence(:username) { |i| "bruce#{i}" } }
|
||||
email { sequence(:email) { |i| "bruce#{i}@wayne.com" } }
|
||||
password 'myawesomepassword'
|
||||
trust_level TrustLevel.Levels[:basic]
|
||||
trust_level TrustLevel.levels[:basic]
|
||||
bio_raw "I'm batman!"
|
||||
end
|
||||
|
||||
@@ -32,7 +32,7 @@ Fabricator(:moderator, from: :user) do
|
||||
name 'A. Moderator'
|
||||
username 'moderator'
|
||||
email 'moderator@discourse.org'
|
||||
trust_level TrustLevel.Levels[:moderator]
|
||||
trust_level TrustLevel.levels[:moderator]
|
||||
end
|
||||
|
||||
Fabricator(:admin, from: :user) do
|
||||
|
||||
Reference in New Issue
Block a user