diff --git a/app/helpers/social_helper.rb b/app/helpers/social_helper.rb index b8ce3b9d..c4d8b329 100644 --- a/app/helpers/social_helper.rb +++ b/app/helpers/social_helper.rb @@ -10,7 +10,7 @@ module SocialHelper id: answer.id, username: answer.user.screen_name, host: APP_CONFIG["hostname"], - protocol: (APP_CONFIG["https"] ? :https : :http) + protocol: (APP_CONFIG["https"] ? :https : :http), ) end end diff --git a/spec/helpers/social_helper_spec.rb b/spec/helpers/social_helper_spec.rb index 6841cdef..1c165eb0 100644 --- a/spec/helpers/social_helper_spec.rb +++ b/spec/helpers/social_helper_spec.rb @@ -9,7 +9,7 @@ describe SocialHelper, type: :helper do :answer, user:, content: "this is an answer\nwith multiple lines\nand **FORMATTING**", - question_content: "this is a question .... or is it?" + question_content: "this is a question .... or is it?", ) end @@ -18,7 +18,8 @@ describe SocialHelper, type: :helper do "hostname" => "example.com", "https" => true, "items_per_page" => 5, - }) + }, + ) end describe "#answer_share_url" do