From 544c18498176234470689208c1f6264950039536 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 27 Jan 2022 22:32:03 +0100 Subject: [PATCH] Fix expected flash texts in `ServicesController` tests --- spec/controllers/services_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/services_controller_spec.rb b/spec/controllers/services_controller_spec.rb index 13f8b04c..7c91817d 100644 --- a/spec/controllers/services_controller_spec.rb +++ b/spec/controllers/services_controller_spec.rb @@ -64,7 +64,7 @@ describe ServicesController, type: :controller do it 'updates a service connection' do expect { subject }.to change { service.reload.post_tag }.to('#askaraccoon') expect(response).to redirect_to(services_path) - expect(flash[:success]).to eq("Service updated successfully") + expect(flash[:success]).to eq("Service updated successfully.") end end @@ -74,7 +74,7 @@ describe ServicesController, type: :controller do it 'shows an error' do subject expect(response).to redirect_to(services_path) - expect(flash[:error]).to eq("Failed to update service") + expect(flash[:error]).to eq("Unable to update service.") end end end