Refactoring the code for pub sub (#155)

- We were using the attribute name 'channel' to store pubsub tokens, which was confusing.
- switched to faker from ffaker
- spec for contact.rb
This commit is contained in:
Sojan Jose
2019-10-17 03:18:07 +05:30
committed by GitHub
parent ad5fb525f5
commit 3988777718
14 changed files with 89 additions and 52 deletions

View File

@@ -8,8 +8,8 @@ FactoryBot.define do
provider { 'email' }
uid { SecureRandom.uuid }
name { FFaker::Name.name }
nickname { FFaker::InternetSE.user_name_from_name(name) }
name { Faker::Name.name }
nickname { Faker::Name.first_name }
email { nickname + '@example.com' }
role { 'agent' }
password { "password" }