From eb16ff83a48f2bc35b780d2058c45e7b3706952f Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 6 Jul 2022 14:08:51 +0200 Subject: [PATCH] Fix test to match adjusted responses --- spec/controllers/ajax/report_controller_spec.rb | 2 +- spec/controllers/ajax/subscription_controller_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/controllers/ajax/report_controller_spec.rb b/spec/controllers/ajax/report_controller_spec.rb index dd8c4c10..5f4e67b8 100644 --- a/spec/controllers/ajax/report_controller_spec.rb +++ b/spec/controllers/ajax/report_controller_spec.rb @@ -136,7 +136,7 @@ describe Ajax::ReportController, :ajax_controller, type: :controller do let(:expected_response) do { "success" => false, - "status" => "err", + "status" => "noauth", "message" => anything } end diff --git a/spec/controllers/ajax/subscription_controller_spec.rb b/spec/controllers/ajax/subscription_controller_spec.rb index 6c82f400..19b21750 100644 --- a/spec/controllers/ajax/subscription_controller_spec.rb +++ b/spec/controllers/ajax/subscription_controller_spec.rb @@ -25,7 +25,7 @@ describe Ajax::SubscriptionController, :ajax_controller, type: :controller do let(:expected_response) do { "success" => true, - "status" => 418, + "status" => "okay", "message" => anything } end @@ -96,7 +96,7 @@ describe Ajax::SubscriptionController, :ajax_controller, type: :controller do let(:expected_response) do { "success" => true, - "status" => 418, + "status" => "okay", "message" => anything } end @@ -116,7 +116,7 @@ describe Ajax::SubscriptionController, :ajax_controller, type: :controller do let(:expected_response) do { "success" => false, - "status" => 418, + "status" => "okay", "message" => anything } end