Fix expected flash texts in `ServicesController` tests
This commit is contained in:
parent
8838663528
commit
544c184981
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue