Browse Source

test: check for mobility_type and location_admin_district in locations_controller as support user

pull/987/head
Sam Seed 4 years ago
parent
commit
eb0a6fc9fc
  1. 2
      spec/requests/locations_controller_spec.rb

2
spec/requests/locations_controller_spec.rb

@ -986,6 +986,8 @@ RSpec.describe LocationsController, type: :request do
expect(page).to have_content(location.status) expect(page).to have_content(location.status)
else else
expect(page).to have_content(location.type_of_unit) expect(page).to have_content(location.type_of_unit)
expect(page).to have_content(location.mobility_type)
expect(page).to have_content(location.location_admin_district)
expect(page).to have_content(location.startdate&.to_formatted_s(:govuk_date)) expect(page).to have_content(location.startdate&.to_formatted_s(:govuk_date))
end end
end end

Loading…
Cancel
Save