Merge branch 'master' into production

This commit is contained in:
phoenixeliot 2016-06-13 12:21:34 -07:00
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

View file

@ -256,7 +256,7 @@ module.exports = class ThangType extends CocoModel
"Sorcerer": "Pender" "Sorcerer": "Pender"
"Trapper": "Senick" "Trapper": "Senick"
"Champion": "Ida" "Champion": "Ida"
"Duelist": "Nando" "Duelist": "Alejandro"
} }
map[@get('name')] map[@get('name')]

View file

@ -81,8 +81,6 @@ mixin accountLinks
p If this is showing, you dun goofed p If this is showing, you dun goofed
block footer block footer
#character-lineup.text-center.m-t-3
img(src="/images/pages/home/character_lineup.png")
.container-fluid .container-fluid
#footer.small #footer.small
.container .container

View 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