').html(@triggerSpy.argsForCall[0][1]['value']).html()
expect(value).toContain('100px')
expect(value).toContain('42px')
expect(value).toContain('src="http://www.youtube.com/embed/foo?wmode=transparent"')
describe "a vimeo video", ->
beforeEach ->
$('#media_vimeo_url').val('http://vimeo.com/foo')
$('#media_vimeo_width').val(100)
$('#media_vimeo_height').val('42')
$('input[value=vimeo_url]').prop('checked', true)
it "triggers an action with the proper values", ->
jasmine.simulate.click($('#submit').get(0))
expect(@triggerSpy.callCount).toEqual(1)
expect(@triggerSpy.argsForCall[0][0]).toEqual('action')
expect(@triggerSpy.argsForCall[0][1]['action']).toEqual('insertHTML')
value = $('
').html(@triggerSpy.argsForCall[0][1]['value']).html()
expect(value).toContain('100px')
expect(value).toContain('42px')
expect(value).toContain('http://player.vimeo.com/video/foo?title=1&byline=1&portrait=0&color=ffffff')