Browse Source

fixed after rebasing

pull/730/head
JG 3 years ago
parent
commit
b4a1d4cc25
  1. 1
      config/locales/en.yml
  2. 1
      spec/factories/location.rb
  3. 7
      spec/features/schemes_spec.rb

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

@ -3,6 +3,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 { 2 }

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