Skip to content

Commit

Permalink
fix: expand test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasPeters committed May 25, 2024
1 parent b861b75 commit 7c17300
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions test/fixtures/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ martyparty:
email: [email protected]
birth_date: <%= Date.today %>
join_date: <%= Date.today %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103011

dannypanny:
first_name: Danny
Expand All @@ -25,6 +26,7 @@ dannypanny:
email: [email protected]
birth_date: <%= Date.today %>
join_date: <%= Date.today %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103012

captain_underpants:
first_name: Kapitein
Expand All @@ -38,6 +40,7 @@ captain_underpants:
email: [email protected]
birth_date: <%= 19.years.ago %>
join_date: <%= 2.weeks.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103009

yorici:
first_name: Yorici
Expand All @@ -51,6 +54,7 @@ yorici:
email: [email protected]
birth_date: <%= 20.years.ago %>
join_date: <%= 2.years.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103013

# Use this user to test for 18+ activities correctly not allowing 18- members to join an activity
m8eld:
Expand All @@ -65,6 +69,7 @@ m8eld:
email: [email protected]
birth_date: <%= 17.years.ago %>
join_date: <%= 1.days.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103014

glenniepennie:
first_name: Stewart
Expand All @@ -78,6 +83,7 @@ glenniepennie:
email: [email protected]
birth_date: <%= 20.years.ago %>
join_date: <%= 2.years.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103015

#This user has a German international phone number, just in case we want to test this
roosje:
Expand All @@ -92,6 +98,7 @@ roosje:
email: [email protected]
birth_date: <%= 19.years.ago %>
join_date: <%= 7.weeks.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103016

meneerdeveurzitter:
first_name: Emilius
Expand All @@ -105,6 +112,7 @@ meneerdeveurzitter:
email: [email protected]
birth_date: <%= 29.years.ago %>
join_date: <%= 1.weeks.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103017

needfuldoer:
first_name: Raji
Expand All @@ -118,6 +126,7 @@ needfuldoer:
email: [email protected]
birth_date: <%= 40.years.ago %>
join_date: <%= 9.weeks.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103018

thecreator:
first_name: Martijn
Expand All @@ -131,6 +140,7 @@ thecreator:
email: [email protected]
birth_date: <%= 20.years.ago %>
join_date: <%= 19.years.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103019

masterboy030man:
first_name: Masterboy
Expand All @@ -144,6 +154,7 @@ masterboy030man:
email: [email protected]
birth_date: <%= 25.years.ago %>
join_date: <%= 19.years.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103020

feutemeteut:
first_name: Feu
Expand All @@ -158,3 +169,4 @@ feutemeteut:
email: [email protected]
birth_date: <%= 18.years.ago %>
join_date: <%= 17.years.ago %>
calendar_id: 75a3ebf0-9e07-435f-b9cf-28e720103021
2 changes: 1 addition & 1 deletion test/models/member_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MemberTest < ActiveSupport::TestCase
'first_name' => '', 'last_name' => '',
'address' => '', 'house_number' => '', 'postal_code' => '', 'city' => '',
'phone_number' => '', 'emergency_phone_number' => '', 'email' => '',
'birth_date' => nil, 'join_date' => nil
'birth_date' => nil, 'join_date' => nil, 'calendar_id' => ''
}

# Verify that a Member model with the minimal set of attributes defined above
Expand Down

0 comments on commit 7c17300

Please sign in to comment.