|
25 | 25 | expect(person_wally.email).to eq('[email protected]')
|
26 | 26 |
|
27 | 27 | get "/de/people/#{person_wally.id}"
|
28 |
| - expect(response).to render_template(:show) |
29 | 28 |
|
30 | 29 | person_wally.reload
|
31 | 30 | expect(person_wally.name).to eq('Changed Wally Allround')
|
32 | 31 | expect(person_wally.shortname).to eq('CAL')
|
33 | 32 | expect(person_wally.email).to eq('[email protected]')
|
34 | 33 | expect(person_wally.marital_status).to eq('single')
|
35 | 34 | expect(person_wally.title).to eq('Quarter-Stack Developer')
|
36 |
| - # Can be commented in when the updated PTime API has been released and the mapping in the 'people_employees.rb' has been fixed |
37 |
| - |
38 |
| - # expect(person_wally.birthdate.to_date).to eq(Date.parse('1.1.2000')) |
39 |
| - # expect(person_wally.location).to eq('Basel') |
| 35 | + expect(person_wally.birthdate.to_date).to eq(Date.parse('1.1.2000')) |
| 36 | + expect(person_wally.location).to eq('Basel') |
40 | 37 | expect(person_wally.nationality).to eq('DE')
|
41 | 38 | expect(person_wally.nationality2).to eq('DK')
|
42 | 39 | end
|
|
57 | 54 | expect(new_wally.email).to eq('[email protected]')
|
58 | 55 | expect(new_wally.marital_status).to eq('single')
|
59 | 56 | expect(new_wally.title).to eq('Quarter-Stack Developer')
|
60 |
| - # Can be commented in when the updated PTime API has been released and the mapping in the 'people_employees.rb' has been fixed |
61 |
| - |
62 |
| - # expect(new_wally.birthdate).to eq('1.1.2000') |
63 |
| - # expect(new_wally.location).to eq('Basel') |
| 57 | + expect(new_wally.birthdate).to eq('1.1.2000') |
| 58 | + expect(new_wally.location).to eq('Basel') |
64 | 59 | expect(new_wally.nationality).to eq('DE')
|
65 | 60 | expect(new_wally.nationality2).to eq('DK')
|
66 | 61 | end
|
|
0 commit comments