Browse Source

test: update tests with new urls

pull/957/head
natdeanlewissoftwire 3 years ago
parent
commit
1904fd52e5
  1. 8
      spec/requests/organisation_relationships_controller_spec.rb

8
spec/requests/organisation_relationships_controller_spec.rb

@ -158,7 +158,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
it "redirects to the organisation list" do
request
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers?related_organisation_id=#{housing_provider.id}")
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers")
end
end
@ -209,7 +209,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
it "redirects to the organisation list" do
request
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers?removed_organisation_id=#{housing_provider.id}")
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers")
end
end
end
@ -360,7 +360,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
it "redirects to the organisation list" do
request
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers?related_organisation_id=#{housing_provider.id}")
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers")
end
end
@ -411,7 +411,7 @@ RSpec.describe OrganisationRelationshipsController, type: :request do
it "redirects to the organisation list" do
request
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers?removed_organisation_id=#{housing_provider.id}")
expect(response).to redirect_to("/organisations/#{organisation.id}/housing-providers")
end
end

Loading…
Cancel
Save