Fix expected flash texts in `ServicesController` tests

This commit is contained in:
Andreas Nedbal 2022-01-27 22:32:03 +01:00 committed by Andreas Nedbal
parent 8838663528
commit 544c184981
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ describe ServicesController, type: :controller do
it 'updates a service connection' do it 'updates a service connection' do
expect { subject }.to change { service.reload.post_tag }.to('#askaraccoon') expect { subject }.to change { service.reload.post_tag }.to('#askaraccoon')
expect(response).to redirect_to(services_path) 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
end end
@ -74,7 +74,7 @@ describe ServicesController, type: :controller do
it 'shows an error' do it 'shows an error' do
subject subject
expect(response).to redirect_to(services_path) 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 end
end end