diff --git a/modules/va_notify/lib/va_notify/service.rb b/modules/va_notify/lib/va_notify/service.rb index 81f3543137..00084448f2 100644 --- a/modules/va_notify/lib/va_notify/service.rb +++ b/modules/va_notify/lib/va_notify/service.rb @@ -106,7 +106,7 @@ def create_notification(response) end def find_caller_locations - caller_locations(1,1).map do |location| + caller_locations(1, 1).map do |location| "#{location.path}:#{location.lineno} in #{location.label}" end end diff --git a/modules/va_notify/spec/lib/service_spec.rb b/modules/va_notify/spec/lib/service_spec.rb index 57eb6b5a97..67833eca2d 100644 --- a/modules/va_notify/spec/lib/service_spec.rb +++ b/modules/va_notify/spec/lib/service_spec.rb @@ -108,7 +108,7 @@ it 'logs an error if the notification cannot be saved' do notification = VANotify::Notification.new - notification.errors.add(:base, "Some error occurred") + notification.errors.add(:base, 'Some error occurred') allow(Flipper).to receive(:enabled?).with(:notification_creation).and_return(true) allow(Notifications::Client).to receive(:new).and_return(notification_client) allow(notification_client).to receive(:send_email).and_return(response) @@ -157,7 +157,7 @@ it 'logs an error if the notification cannot be saved' do notification = VANotify::Notification.new - notification.errors.add(:base, "Some error occurred") + notification.errors.add(:base, 'Some error occurred') allow(Flipper).to receive(:enabled?).with(:notification_creation).and_return(true) allow(Notifications::Client).to receive(:new).and_return(notification_client) allow(notification_client).to receive(:send_sms).and_return(response)