Skip to content

Commit 27313f4

Browse files
committed
Fix tests: add required reference/district_nces_id for UK/US schools
1 parent 980647f commit 27313f4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

spec/concepts/school/create_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
address_line_1: 'Address Line 1',
1111
municipality: 'Greater London',
1212
country_code: 'GB',
13+
reference: '100000',
1314
creator_agree_authority: true,
1415
creator_agree_terms_and_conditions: true,
1516
creator_agree_to_ux_contact: true,

spec/features/admin/schools_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
describe 'when the school is in the United States and has a postal code' do
8181
before do
82-
school.update(country_code: 'US', postal_code: '90210')
82+
school.update(country_code: 'US', postal_code: '90210', district_nces_id: '010000000001', reference: nil)
8383
get admin_school_path(school)
8484
end
8585

spec/features/school/creating_a_school_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
address_line_1: 'Address Line 1',
2020
municipality: 'Greater London',
2121
country_code: 'GB',
22+
reference: '100000',
2223
creator_agree_authority: true,
2324
creator_agree_terms_and_conditions: true,
2425
creator_agree_to_ux_contact: true,

0 commit comments

Comments
 (0)