first pass at jasmine tests
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user