🚨Fix Rubocop lint errors

This commit is contained in:
Pranav Raj S
2019-10-20 14:17:26 +05:30
committed by GitHub
parent dd018f3682
commit 94c6d6db6f
124 changed files with 774 additions and 914 deletions

View File

@@ -4,12 +4,9 @@ FactoryBot.define do
factory :contact do
sequence(:name) { |n| "Widget #{n}" }
sequence(:email) { |n| "widget-#{n}@example.com" }
phone_number { "+123456789011" }
phone_number { '+123456789011' }
source_id { rand(100) }
account
inbox
end
end

View File

@@ -4,6 +4,6 @@ FactoryBot.define do
factory :inbox do
account
association :channel, factory: :channel_widget
name { "Inbox" }
name { 'Inbox' }
end
end

View File

@@ -9,10 +9,10 @@ FactoryBot.define do
provider { 'email' }
uid { SecureRandom.uuid }
name { Faker::Name.name }
nickname { Faker::Name.first_name }
nickname { Faker::Name.first_name }
email { nickname + '@example.com' }
role { 'agent' }
password { "password" }
password { 'password' }
account
after(:build) do |user, evaluator|