Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
1eeec7c6
Commit
1eeec7c6
authored
Apr 05, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update issue_spec test
parent
33faf219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/javascripts/issue_spec.js.coffee
spec/javascripts/issue_spec.js.coffee
+3
-3
No files found.
spec/javascripts/issue_spec.js.coffee
View file @
1eeec7c6
...
@@ -29,8 +29,8 @@ describe 'reopen/close issue', ->
...
@@ -29,8 +29,8 @@ describe 'reopen/close issue', ->
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
req
)
->
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
req
)
->
expect
(
req
.
type
).
toBe
(
'PUT'
)
expect
(
req
.
type
).
toBe
(
'PUT'
)
expect
(
req
.
url
).
toBe
(
'http://gitlab.com/issues/6/close'
)
expect
(
req
.
url
).
toBe
(
'http://gitlab.com/issues/6/close'
)
req
.
success
saved
:
true
req
.
success
id
:
34
$btnClose
=
$
(
'a.btn-close'
)
$btnClose
=
$
(
'a.btn-close'
)
$btnReopen
=
$
(
'a.btn-reopen'
)
$btnReopen
=
$
(
'a.btn-reopen'
)
expect
(
$btnReopen
).
toBeHidden
()
expect
(
$btnReopen
).
toBeHidden
()
...
@@ -94,7 +94,7 @@ describe 'reopen/close issue', ->
...
@@ -94,7 +94,7 @@ describe 'reopen/close issue', ->
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
req
)
->
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
req
)
->
expect
(
req
.
type
).
toBe
(
'PUT'
)
expect
(
req
.
type
).
toBe
(
'PUT'
)
expect
(
req
.
url
).
toBe
(
'http://gitlab.com/issues/6/reopen'
)
expect
(
req
.
url
).
toBe
(
'http://gitlab.com/issues/6/reopen'
)
req
.
success
saved
:
true
req
.
success
id
:
34
$btnClose
=
$
(
'a.btn-close'
)
$btnClose
=
$
(
'a.btn-close'
)
$btnReopen
=
$
(
'a.btn-reopen'
)
$btnReopen
=
$
(
'a.btn-reopen'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment