mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:39:52 +01:00
Fix rubocop nits
This commit is contained in:
parent
af3caf9be1
commit
5f0fed8c94
2 changed files with 4 additions and 3 deletions
|
@ -10,7 +10,7 @@ module SocialHelper
|
||||||
id: answer.id,
|
id: answer.id,
|
||||||
username: answer.user.screen_name,
|
username: answer.user.screen_name,
|
||||||
host: APP_CONFIG["hostname"],
|
host: APP_CONFIG["hostname"],
|
||||||
protocol: (APP_CONFIG["https"] ? :https : :http)
|
protocol: (APP_CONFIG["https"] ? :https : :http),
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe SocialHelper, type: :helper do
|
||||||
:answer,
|
:answer,
|
||||||
user:,
|
user:,
|
||||||
content: "this is an answer\nwith multiple lines\nand **FORMATTING**",
|
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
|
end
|
||||||
|
|
||||||
|
@ -18,7 +18,8 @@ describe SocialHelper, type: :helper do
|
||||||
"hostname" => "example.com",
|
"hostname" => "example.com",
|
||||||
"https" => true,
|
"https" => true,
|
||||||
"items_per_page" => 5,
|
"items_per_page" => 5,
|
||||||
})
|
},
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#answer_share_url" do
|
describe "#answer_share_url" do
|
||||||
|
|
Loading…
Reference in a new issue