diff --git a/Gemfile.lock b/Gemfile.lock index ea0d17ef8..964fe3a8a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -527,7 +527,7 @@ GEM activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.6.0) + rubocop-rspec (2.7.0) rubocop (~> 1.19) ruby-progressbar (1.11.0) ruby-saml (1.13.0) diff --git a/spec/models/channel/driver/sms/message_bird_spec.rb b/spec/models/channel/driver/sms/message_bird_spec.rb index 4d3b58beb..f8ca209f6 100644 --- a/spec/models/channel/driver/sms/message_bird_spec.rb +++ b/spec/models/channel/driver/sms/message_bird_spec.rb @@ -28,14 +28,14 @@ RSpec.describe Channel::Driver::Sms::MessageBird do private def create_channel - FactoryBot.create(:channel, - options: { - adapter: 'sms/message_bird', - sender: sender_number, - token: token - }, - created_by_id: 1, - updated_by_id: 1) + create(:channel, + options: { + adapter: 'sms/message_bird', + sender: sender_number, + token: token + }, + created_by_id: 1, + updated_by_id: 1) end # api parameters diff --git a/spec/models/channel/driver/sms/twilio_spec.rb b/spec/models/channel/driver/sms/twilio_spec.rb index 579408dc1..45c17133e 100644 --- a/spec/models/channel/driver/sms/twilio_spec.rb +++ b/spec/models/channel/driver/sms/twilio_spec.rb @@ -28,15 +28,15 @@ RSpec.describe Channel::Driver::Sms::Twilio do private def create_channel - FactoryBot.create(:channel, - options: { - account_id: account_id, - adapter: 'sms/twilio', - sender: sender_number, - token: token - }, - created_by_id: 1, - updated_by_id: 1) + create(:channel, + options: { + account_id: account_id, + adapter: 'sms/twilio', + sender: sender_number, + token: token + }, + created_by_id: 1, + updated_by_id: 1) end # api parameters