Browse Source

Include affected location in test

pull/2605/head
Manny Dinssa 2 years ago
parent
commit
795eae89b7
  1. 6
      spec/requests/schemes_controller_spec.rb

6
spec/requests/schemes_controller_spec.rb

@ -2534,7 +2534,7 @@ RSpec.describe SchemesController, type: :request do
it "redirects to the confirmation page" do it "redirects to the confirmation page" do
follow_redirect! follow_redirect!
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_content("This change will affect #{scheme.lettings_logs.count} log") expect(page).to have_content("This change will affect #{scheme.lettings_logs.count} log and 1 location.")
end end
end end
@ -2565,7 +2565,7 @@ RSpec.describe SchemesController, type: :request do
it "redirects to the confirmation page" do it "redirects to the confirmation page" do
follow_redirect! follow_redirect!
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_content("This change will affect #{scheme.lettings_logs.count} log") expect(page).to have_content("This change will affect #{scheme.lettings_logs.count} log and 1 location.")
end end
end end
@ -2784,7 +2784,7 @@ RSpec.describe SchemesController, type: :request do
it "redirects to the confirmation page" do it "redirects to the confirmation page" do
follow_redirect! follow_redirect!
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_content("This change will affect 1 log") expect(page).to have_content("This change will affect 1 log and 1 location.")
end end
end end
end end

Loading…
Cancel
Save