Refactor fixtures for capa problems.

This commit is contained in:
Jay Zoldak
2012-11-16 14:59:46 -05:00
parent a10a3209aa
commit ea4c0ed86a
3 changed files with 8 additions and 10 deletions

View File

@@ -1,2 +1,7 @@
<section id="problem_1" class="problems-wrapper" data-url="/problem/url/"
data-problem-id="i4x://edX/101/problem/Quiz"></section>
<section class='xmodule_display xmodule_CapaModule' data-type='Problem'>
<section id='problem_1'
class='problems-wrapper'
data-problem-id='i4x://edX/101/problem/Problem1'
data-url='/problem/Problem1'>
</section>
</section>

View File

@@ -1,7 +0,0 @@
<section class='xmodule_display xmodule_CapaModule' data-type='Problem'>
<section id='problem_1'
class='problems-wrapper'
data-problem-id='i4x://edX/101/problem/Problem1'
data-url='/problem/Problem1'>
</section>
</section>

View File

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