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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
bbdb6a11
Commit
bbdb6a11
authored
Feb 03, 2017
by
Pedro Moreira da Silva
Committed by
Oswaldo Ferreira
Feb 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update system_note_service_spec.rb
parent
5316d1cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/services/system_note_service_spec.rb
spec/services/system_note_service_spec.rb
+5
-5
No files found.
spec/services/system_note_service_spec.rb
View file @
bbdb6a11
...
@@ -752,13 +752,13 @@ describe SystemNoteService, services: true do
...
@@ -752,13 +752,13 @@ describe SystemNoteService, services: true do
it
'sets the note text'
do
it
'sets the note text'
do
noteable
.
update_attribute
(
:time_estimate
,
277200
)
noteable
.
update_attribute
(
:time_estimate
,
277200
)
expect
(
subject
.
note
).
to
eq
"
Changed time estimate of this issu
e to 1w 4d 5h"
expect
(
subject
.
note
).
to
eq
"
changed time estimat
e to 1w 4d 5h"
end
end
end
end
context
'without a time estimate'
do
context
'without a time estimate'
do
it
'sets the note text'
do
it
'sets the note text'
do
expect
(
subject
.
note
).
to
eq
"
Removed time estimate on this issu
e"
expect
(
subject
.
note
).
to
eq
"
removed time estimat
e"
end
end
end
end
end
end
...
@@ -782,7 +782,7 @@ describe SystemNoteService, services: true do
...
@@ -782,7 +782,7 @@ describe SystemNoteService, services: true do
it
'sets the note text'
do
it
'sets the note text'
do
spend_time!
(
277200
)
spend_time!
(
277200
)
expect
(
subject
.
note
).
to
eq
"
Added 1w 4d 5h of time spent on this merge reques
t"
expect
(
subject
.
note
).
to
eq
"
added 1w 4d 5h of time spen
t"
end
end
end
end
...
@@ -790,7 +790,7 @@ describe SystemNoteService, services: true do
...
@@ -790,7 +790,7 @@ describe SystemNoteService, services: true do
it
'sets the note text'
do
it
'sets the note text'
do
spend_time!
(
-
277200
)
spend_time!
(
-
277200
)
expect
(
subject
.
note
).
to
eq
"
Subtracted 1w 4d 5h of time spent on this merge reques
t"
expect
(
subject
.
note
).
to
eq
"
subtracted 1w 4d 5h of time spen
t"
end
end
end
end
...
@@ -798,7 +798,7 @@ describe SystemNoteService, services: true do
...
@@ -798,7 +798,7 @@ describe SystemNoteService, services: true do
it
'sets the note text'
do
it
'sets the note text'
do
spend_time!
(
:reset
)
spend_time!
(
:reset
)
expect
(
subject
.
note
).
to
eq
"
Removed time spent on this merge reques
t"
expect
(
subject
.
note
).
to
eq
"
removed time spen
t"
end
end
end
end
...
...
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