Commit 3767a34c by Greg Price Committed by Zia Fazal

Use some real templates in forum list view tests

Unfortunately, one template (thread-list-template, defined in
_thread_list_template.html) still relies on complex Mako processing, so
that is still being mocked in the tests.
parent b6f00aca
......@@ -133,7 +133,7 @@ describe "DiscussionThreadListView", ->
]
spyOn($, "ajax")
@discussion = new Discussion([])
@view = new DiscussionThreadListView(
collection: @discussion,
......@@ -154,7 +154,7 @@ describe "DiscussionThreadListView", ->
renderSingleThreadWithProps = (props) ->
makeView(new Discussion([new Thread(DiscussionViewSpecHelper.makeThreadWithProps(props))])).render()
makeView = (discussion) ->
makeView = (discussion) ->
return new DiscussionThreadListView(
el: $("#fixture-element"),
collection: discussion,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment