 
     # note that the fixturesPath is set in spec/helper.coffee
     loadFixtures 'problem.html'
- 
+
     spyOn Logger, 'log'
     spyOn($.fn, 'load').andCallFake (url, callback) ->
       $(@).html readFixtures('problem_content.html')

    it 'set the element from html', ->
      @problem999 = new Problem ("
        <section class='xmodule_display xmodule_CapaModule' data-type='Problem'>
          <section id='problem_999' 
                   class='problems-wrapper' 
                   data-problem-id='i4x://edX/999/problem/Quiz' 
                   data-url='/problem/quiz/'>
          </section>
        </section>
        ")      
      expect(@problem999.element_id).toBe 'problem_999'

    it 'set the element from loadFixtures', ->

      expect($('section.action input.reset')).toHandleWith 'click', @problem.reset

    it 'bind the show button', ->
      expect($('section.action button.show')).toHandleWith 'click', @problem.show

    it 'bind the save button', ->
      expect($('section.action input.save')).toHandleWith 'click', @problem.save
