mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
d1af5ab77e
4 changed files with 30 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 59 KiB |
|
@ -256,7 +256,7 @@ module.exports = class ThangType extends CocoModel
|
|||
"Sorcerer": "Pender"
|
||||
"Trapper": "Senick"
|
||||
"Champion": "Ida"
|
||||
"Duelist": "Nando"
|
||||
"Duelist": "Alejandro"
|
||||
}
|
||||
map[@get('name')]
|
||||
|
||||
|
|
|
@ -81,8 +81,6 @@ mixin accountLinks
|
|||
p If this is showing, you dun goofed
|
||||
|
||||
block footer
|
||||
#character-lineup.text-center.m-t-3
|
||||
img(src="/images/pages/home/character_lineup.png")
|
||||
.container-fluid
|
||||
#footer.small
|
||||
.container
|
||||
|
|
29
test/app/views/teachers/InviteToClassroomModal.spec.coffee
Normal file
29
test/app/views/teachers/InviteToClassroomModal.spec.coffee
Normal file
|
@ -0,0 +1,29 @@
|
|||
InviteToClassroomModal = require 'views/courses/InviteToClassroomModal'
|
||||
User = require 'models/User'
|
||||
factories = require 'test/app/factories'
|
||||
|
||||
describe 'InviteToClassroomModal', ->
|
||||
|
||||
modal = null
|
||||
|
||||
beforeEach (done) ->
|
||||
window.me = @teacher = factories.makeUser()
|
||||
@classroom = factories.makeClassroom({ code: "wordsouphere", codeCamel: "WordSoupHere", ownerID: @teacher.id })
|
||||
modal = new InviteToClassroomModal({ @classroom })
|
||||
jasmine.demoModal(modal)
|
||||
modal.render()
|
||||
_.defer done
|
||||
|
||||
describe 'Invite by email', ->
|
||||
beforeEach (done) ->
|
||||
@emails = ['test@example.com', 'test2@example.com']
|
||||
modal.$('#invite-emails-textarea').val(@emails.join('\n'))
|
||||
modal.$('#send-invites-btn').click()
|
||||
_.defer done
|
||||
|
||||
it 'sends the request', (done) ->
|
||||
request = jasmine.Ajax.requests.mostRecent()
|
||||
expect(request.url).toBe("/db/classroom/#{@classroom.id}/invite-members")
|
||||
expect(request.method).toBe("POST")
|
||||
expect(request.data()['emails[]']).toEqual(@emails)
|
||||
_.defer done
|
Loading…
Reference in a new issue