From 2f5dfebcdbf0bb46fbf20dfdf5cad4843f774e0b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 24 Jul 2020 19:21:04 +0100 Subject: [PATCH] DEV: Correct rubocop offenses --- spec/user_warning_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/user_warning_spec.rb b/spec/user_warning_spec.rb index bf23d47..8145e60 100644 --- a/spec/user_warning_spec.rb +++ b/spec/user_warning_spec.rb @@ -24,7 +24,7 @@ describe UserWarning do warning = UserWarning.create!(topic_id: topic.id, user_id: user.id, created_by_id: admin.id) warning.destroy! - + I18n.with_locale(:fr) do # Simulate request from french user UserWarning.create(topic_id: topic.id, user_id: user.id, created_by_id: admin.id) end