mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Fix ConvertToTeacherAccountView to save the email field
This commit is contained in:
parent
8ff80fc92d
commit
5aeb559ad1
2 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,7 @@ block content
|
|||
.col-md-4.col-sm-6
|
||||
#email-form-group.form-group
|
||||
label.control-label(data-i18n="general.email")
|
||||
input.form-control(disabled=true value=me.get('email'))
|
||||
input.form-control(name='email' disabled=true value=me.get('email'))
|
||||
|
||||
.row.m-y-2
|
||||
.col-md-offset-2.col-md-4.col-sm-6
|
||||
|
|
|
@ -136,6 +136,7 @@ describe 'ConvertToTeacherAccountView (/teachers/update-account)', ->
|
|||
attrs = JSON.parse(request.params)
|
||||
expect(attrs.properties?.firstName).toBe('Mr')
|
||||
expect(attrs.properties?.siteOrigin).toBe('convert teacher')
|
||||
expect(attrs.properties?.email).toBe('some@email.com')
|
||||
|
||||
it 'redirects to /teachers/classes', ->
|
||||
request = jasmine.Ajax.requests.mostRecent()
|
||||
|
|
Loading…
Reference in a new issue