Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2015-12-24 00:56:36 +0300
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2015-12-24 00:56:36 +0300
commit7e43fa67096f60856d1cf862f245367bc710a44f (patch)
tree5677bd54c231574e5ea306e98c9f623b6464952c /spec/javascripts/issue_spec.js.coffee
parent3ea3d9ef284fcfaaa1b631e98926df7dae4129c9 (diff)
fixes tests to work with jasmine/jquery
Diffstat (limited to 'spec/javascripts/issue_spec.js.coffee')
-rw-r--r--spec/javascripts/issue_spec.js.coffee18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/javascripts/issue_spec.js.coffee b/spec/javascripts/issue_spec.js.coffee
index ef78cfbc653..142eb05cc67 100644
--- a/spec/javascripts/issue_spec.js.coffee
+++ b/spec/javascripts/issue_spec.js.coffee
@@ -33,16 +33,16 @@ describe 'reopen/close issue', ->
$btnClose = $('a.btn-close')
$btnReopen = $('a.btn-reopen')
- expect($btnReopen.toBeHidden())
+ expect($btnReopen).toBeHidden()
expect($btnClose.text()).toBe('Close')
expect(typeof $btnClose.prop('disabled')).toBe('undefined')
$btnClose.trigger('click')
- expect($btnClose.toBeHidden())
- expect($btnReopen.toBeVisible())
- expect($('div.issue-box-open').toBeVisible())
- expect($('div.issue-box-closed').toBeHidden())
+ expect($btnReopen).toBeVisible()
+ expect($btnClose).toBeHidden()
+ expect($('div.status-box-closed')).toBeVisible()
+ expect($('div.status-box-open')).toBeHidden()
it 'reopens an issue', ->
$.ajax = (obj) ->
@@ -56,7 +56,7 @@ describe 'reopen/close issue', ->
$btnReopen.trigger('click')
- expect($btnReopen.toBeHidden())
- expect($btnClose.toBeVisible())
- expect($('div.issue-box-open').toBeVisible())
- expect($('div.issue-box-closed').toBeHidden()) \ No newline at end of file
+ expect($btnReopen).toBeHidden()
+ expect($btnClose).toBeVisible()
+ expect($('div.status-box-open')).toBeVisible()
+ expect($('div.status-box-closed')).toBeHidden() \ No newline at end of file