Skip to content
Prev Previous commit
Next Next commit
fix failing test
  • Loading branch information
djaiss committed Feb 4, 2018
commit a2e2597ec92ec2f6b50c32e23e6291b049dada3e
2 changes: 1 addition & 1 deletion app/Http/Requests/People/KidsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function rules()
return [
'first_name' => 'required|string|max:50',
'last_name' => 'string|nullable|max:100',
'gender' => 'in:male,female,none',
'gender_id' => 'integer|required',
'birthdate' => 'required|in:unknown,approximate,exact',
'birthdate_year' => 'int|nullable',
'birthdate_month' => 'int|nullable',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/People/RelationshipsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function rules()
return [
'first_name' => 'required|string|max:50',
'last_name' => 'string|nullable|max:100',
'gender' => 'in:male,female,none',
'gender_id' => 'integer|required',
'status' => 'in:active,past|nullable',
'birthdate' => 'required|in:unknown,approximate,exact',
'birthdate_year' => 'int|nullable',
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/AccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@ public function test_it_populates_the_account_with_the_right_default_genders()

$this->assertDatabaseHas(
'genders',
['name' => 'Male']
['name' => 'Man']
);

$this->assertDatabaseHas(
'genders',
['name' => 'Female']
['name' => 'Woman']
);

$this->assertDatabaseHas(
Expand Down