Adjust specs for AJAX answer endpoint

This commit is contained in:
Andreas Nedbal 2023-10-18 20:54:41 +02:00
parent 7156dc5c9b
commit 274d480ba8
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,8 @@ describe Ajax::AnswerController, :ajax_controller, type: :controller do
let(:expected_response) do
super().merge(
"sharing" => {
"url" => a_string_matching("https://#{APP_CONFIG['hostname']}/"),
"text" => a_string_matching("Werfen Sie nicht länger das Fenster zum Geld hinaus!"),
"twitter" => a_string_matching("https://twitter.com/"),
"tumblr" => a_string_matching("https://www.tumblr.com/"),
"telegram" => a_string_matching("https://t.me/"),
@ -170,6 +172,8 @@ describe Ajax::AnswerController, :ajax_controller, type: :controller do
let(:expected_response) do
super().merge(
"sharing" => {
"url" => a_string_matching("https://#{APP_CONFIG['hostname']}/"),
"text" => a_string_matching("Werfen Sie nicht länger das Fenster zum Geld hinaus!"),
"twitter" => a_string_matching("https://twitter.com/"),
"tumblr" => a_string_matching("https://www.tumblr.com/"),
"telegram" => a_string_matching("https://t.me/"),