Browse Source

fixed after rebasing

juris_katrina_test
JG 3 years ago
parent
commit
106a6cc97b
  1. 2
      app/views/locations/new.html.erb
  2. 1
      config/locales/en.yml
  3. 1
      spec/factories/location.rb
  4. 7
      spec/features/schemes_spec.rb

2
app/views/locations/new.html.erb

@ -20,7 +20,7 @@
width: 5 %>
<%= f.govuk_text_field :name,
label: { text: "Location name (optional)", size: "m" },
label: { text: "Name (optional)", size: "m" },
hint: { text: "This is how you refer to this location within your organisation" } %>
<%= f.govuk_number_field :units,

1
config/locales/en.yml

@ -77,7 +77,6 @@ en:
type_of_unit:
blank: "Select the most common type of unit at this location"
validations:
organisation:
name_missing: "Enter the organisation’s name"

1
spec/factories/location.rb

@ -4,6 +4,7 @@ FactoryBot.define do
postcode { Faker::Address.postcode.delete(" ") }
name { Faker::Address.street_name }
type_of_unit { [1, 2, 3, 4, 6, 7].sample }
units { [1, 2, 3, 4, 6, 7].sample }
type_of_building { "Purpose built" }
mobility_type { %w[A M N W X].sample }
wheelchair_adaptation { 0 }

7
spec/features/schemes_spec.rb

@ -667,12 +667,6 @@ RSpec.describe "Schemes scheme Features" do
context "when I select the support answers" do
before do
fill_in "Postcode", with: "SW1P 4DF"
fill_in "Location name (optional)", with: "Some name"
fill_in "Total number of units at this location", with: 1
choose "Self-contained house"
choose "location-wheelchair-adaptation-no-field"
choose "location-add-another-location-no-field"
choose "Floating support"
choose "Very short stay"
click_button "Save and continue"
@ -702,7 +696,6 @@ RSpec.describe "Schemes scheme Features" do
context "when I add location to the scheme" do
before do
click_link "Add a location"
fill_in "Postcode", with: "SW1P 4DF"
fill_in "Name (optional)", with: "Some name"
fill_in "Total number of units at this location", with: 1

Loading…
Cancel
Save