A platform for community discussion. Free, open, simple.
DEV: lint the files
Sam Saffronac3dab93f581
diff --git a/app/controllers/admin/web_hooks_controller.rb b/app/controllers/admin/web_hooks_controller.rbindex d11c8bf396d..b77b56c5f4d 100644--- a/app/controllers/admin/web_hooks_controller.rb+++ b/app/controllers/admin/web_hooks_controller.rb@@ -92,10 +92,12 @@ class Admin::WebHooksController < Admin::AdminControllernow = Time.zone.nowresponse = conn.post(headers: MultiJson.load(web_hook_event.headers), body: web_hook_event.payload)- web_hook_event.update!(status: response.status,- response_headers: MultiJson.dump(response.headers),- response_body: response.body,- duration: ((Time.zone.now - now) * 1000).to_i)+ web_hook_event.update!(+ status: response.status,+ response_headers: MultiJson.dump(response.headers),+ response_body: response.body,+ duration: ((Time.zone.now - now) * 1000).to_i+ )render_serialized(web_hook_event, AdminWebHookEventSerializer, root: 'web_hook_event')elserender json: failed_jsondiff --git a/spec/services/user_anonymizer_spec.rb b/spec/services/user_anonymizer_spec.rbindex da19ae94c98..29a02bde382 100644--- a/spec/services/user_anonymizer_spec.rb+++ b/spec/services/user_anonymizer_spec.rb@@ -75,13 +75,15 @@ describe UserAnonymizer douser.update(name: "Bibi", date_of_birth: 19.years.ago, title: "Super Star")profile = user.reload.user_profile- profile.update(location: "Moose Jaw",- website: "www.bim.com",- bio_raw: "I'm Bibi from Moosejaw. I sing and dance.",- bio_cooked: "I'm Bibi from Moosejaw. I sing and dance.",- profile_background: "http://example.com/bg.jpg",- bio_cooked_version: 2,- card_background: "http://example.com/cb.jpg")+ profile.update(+ location: "Moose Jaw",+ website: "www.bim.com",+ bio_raw: "I'm Bibi from Moosejaw. I sing and dance.",+ bio_cooked: "I'm Bibi from Moosejaw. I sing and dance.",+ profile_background: "http://example.com/bg.jpg",+ bio_cooked_version: 2,+ card_background: "http://example.com/cb.jpg"+ )prev_username = user.username