expect(page).tohave_content("What client group is this scheme intended for?")
expect(page).tohave_content("What client group is this scheme intended for?")
@ -589,7 +589,7 @@ RSpec.describe SchemesController, type: :request do
end
end
context"when required organisation id param is missing"do
context"when required organisation id param is missing"do
let(:params){{"scheme"=>{"service_name"=>"qweqwer","sensitive"=>"Yes","organisation_id"=>"","scheme_type"=>"Foyer","registered_under_care_act"=>"Yes – part registered as a care home","total_units"=>"1"}}}
let(:params){{"scheme"=>{"service_name"=>"qweqwer","sensitive"=>"Yes","organisation_id"=>"","scheme_type"=>"Foyer","registered_under_care_act"=>"Yes – part registered as a care home","total_units"=>"1"}}}
it"displays the new page with an error message"do
it"displays the new page with an error message"do
post"/schemes",params:params
post"/schemes",params:params
@ -624,7 +624,7 @@ RSpec.describe SchemesController, type: :request do