Commit 99f235ec by Kevin Chugh

first pass at jasmine tests

parent 62f6e2d5
describe "DiscussionContentView", ->
beforeEach ->
setFixtures
(
"""
<div class="discussion-column">
</div>
"""
)
@view = new DiscussionThreadListView()
it 'defines the tag', ->
expect($('#jasmine-fixtures')).toExist
expect(@view.tagName).toBeDefined
expect(@view.el.tagName.toLowerCase()).toBe 'div'
it "defines the class", ->
expect(@view).toBeDefined();
......@@ -449,8 +449,6 @@ if Backbone?
type: "POST"
error: () =>
$('input.email-setting').removeAttr('checked')
else
DiscussionUtil.safeAjax
url: DiscussionUtil.urlFor("disable_notifications")
......
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