about summary refs log tree commit diff
path: root/spec/fabricators/encrypted_message_fabricator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fabricators/encrypted_message_fabricator.rb')
-rw-r--r--spec/fabricators/encrypted_message_fabricator.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/fabricators/encrypted_message_fabricator.rb b/spec/fabricators/encrypted_message_fabricator.rb
index e65f66302..43b310514 100644
--- a/spec/fabricators/encrypted_message_fabricator.rb
+++ b/spec/fabricators/encrypted_message_fabricator.rb
@@ -1,8 +1,7 @@
+# frozen_string_literal: true
+
 Fabricator(:encrypted_message) do
   device
-  from_account
-  from_device_id   { Faker::Number.number(digits: 5) }
-  type             0
-  body             ""
-  message_franking ""
+  from_account { Fabricate(:account) }
+  from_device_id { Faker::Number.number(digits: 5) }
 end