Skip to content

Commit

Permalink
Down to 184 failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrne committed Aug 11, 2017
1 parent 2087ca2 commit 87e3aad
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/models/application_letter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def deadline_cannot_be_in_the_past
end
end

# Since EatingHabits are persited in booleans we need to generate a
# Since EatingHabits are persisted in booleans we need to generate a
# EatingHabitStateCode to allow sorting
# US 28_4.5

Expand Down
68 changes: 62 additions & 6 deletions db/sample_data/application_letters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ def application_letter_applicant_gongakrobatik(user, event)
annotation: "Euer Angebot find ich echt super.",
user: user,
event: event,
status: ApplicationLetter.statuses[:pending]
status: ApplicationLetter.statuses[:pending],
first_name: "Erika",
last_name: "Mustermann",
gender: "female",
birth_date: Date.parse('2006.08.14'),
street_name: "Rudolf-Breitscheid-Str. 52",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland",
discovery_of_site: "Von meinem Bruder"
)
end

Expand All @@ -24,7 +34,16 @@ def application_letter_applicant_gongakrobatik_rejected(user, event)
annotation: "",
user: user,
event: event,
status: ApplicationLetter.statuses[:pending]
status: ApplicationLetter.statuses[:pending],
first_name: "Lisa",
last_name: "Ihde",
gender: "female",
birth_date: Date.parse('1996.09.21'),
street_name: "Stahnsdorfer Str.",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland"
)
end

Expand All @@ -39,7 +58,16 @@ def application_letter_applicant_gongakrobatik_accepted(user, event)
annotation: "Euer Angebot find ich echt super.",
user: user,
event: event,
status: ApplicationLetter.statuses[:pending]
status: ApplicationLetter.statuses[:pending],
first_name: "Emma",
last_name: "Klein",
gender: "female",
birth_date: Date.parse('1992.08.11'),
street_name: "Stahnsdorfer Str. 154B",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland"
)
end

Expand All @@ -55,7 +83,16 @@ def application_letter_applicant_programmierkurs_1(user, event)
user: user,
event: event,
custom_application_fields: ['Dooodlejump', '8', 'Java'],
status: ApplicationLetter.statuses[:accepted]
status: ApplicationLetter.statuses[:accepted],
first_name: "Marlon",
last_name: "Ondra",
gender: "male",
birth_date: Date.parse('1999.04.27'),
street_name: "Stahnsdorfer Str. 140A",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland"
)
end

Expand All @@ -71,7 +108,17 @@ def application_letter_applicant_programmierkurs_2(user, event)
user: user,
event: event,
custom_application_fields: ['Snapchat', '10', 'Python'],
status: ApplicationLetter.statuses[:rejected]
status: ApplicationLetter.statuses[:rejected],
first_name: "Max",
last_name: "Mustermann",
gender: "male",
birth_date: Date.parse('2005.12.09'),
street_name: "Musterstraße 42",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland",
discovery_of_site: "Mein Lehrer hat mir davon erzählt"
)
end

Expand All @@ -87,6 +134,15 @@ def application_letter_applicant_programmierkurs_3(user, event)
user: user,
event: event,
custom_application_fields: ['Facebook, Twitter', '9', 'C++, C#'],
status: ApplicationLetter.statuses[:accepted]
status: ApplicationLetter.statuses[:accepted],
first_name: "Hendrik",
last_name: "Schüler",
gender: "male",
birth_date: Date.parse('1995.11.29'),
street_name: "Rudolf-Breitscheid-Str. 52",
zip_code: "14482",
city: "Potsdam",
state: "Brandenburg",
country: "Deutschland"
)
end
9 changes: 9 additions & 0 deletions spec/factories/application_letters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
#
FactoryGirl.define do
factory :application_letter do
first_name "Hendrik"
last_name "Schüler"
gender "male"
birth_date Date.parse('1995.11.29')
street_name "Rudolf-Breitscheid-Str. 52"
zip_code "14482"
city "Potsdam"
state "Brandenburg"
country "Deutschland"
motivation "None"
emergency_number "01234567891"
organisation "Schule am Griebnitzsee"
Expand Down

0 comments on commit 87e3aad

Please sign in to comment.