Browse Source

lint and fix url in tests

pull/1007/head
Kat 4 years ago
parent
commit
f38c02cc85
  1. 1
      spec/features/schemes_spec.rb
  2. 4
      spec/requests/locations_controller_spec.rb

1
spec/features/schemes_spec.rb

@ -754,7 +754,6 @@ RSpec.describe "Schemes scheme Features" do
expect(page).to have_current_path("/schemes/#{scheme.id}/locations") expect(page).to have_current_path("/schemes/#{scheme.id}/locations")
end end
context "when location is incative" do context "when location is incative" do
context "and I click to view the location" do context "and I click to view the location" do
before do before do

4
spec/requests/locations_controller_spec.rb

@ -1428,7 +1428,7 @@ RSpec.describe LocationsController, type: :request do
it "renders reactivate this location" do it "renders reactivate this location" do
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_link("Reactivate this location", href: "/schemes/#{scheme.id}/locations/#{location.id}/reactivate") expect(page).to have_link("Reactivate this location", href: "/schemes/#{scheme.id}/locations/#{location.id}/new-reactivation")
end end
end end
@ -1437,7 +1437,7 @@ RSpec.describe LocationsController, type: :request do
it "renders reactivate this location" do it "renders reactivate this location" do
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_link("Reactivate this location", href: "/schemes/#{scheme.id}/locations/#{location.id}/reactivate") expect(page).to have_link("Reactivate this location", href: "/schemes/#{scheme.id}/locations/#{location.id}/new-reactivation")
end end
end end
end end

Loading…
Cancel
Save