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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5f315bd5
Commit
5f315bd5
authored
Sep 15, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: helpers/ci/application_helper_spec.rb
parent
6cc15cf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/helpers/ci/application_helper_spec.rb
spec/helpers/ci/application_helper_spec.rb
+3
-3
No files found.
spec/helpers/ci/application_helper_spec.rb
View file @
5f315bd5
...
@@ -11,12 +11,12 @@ describe Ci::ApplicationHelper do
...
@@ -11,12 +11,12 @@ describe Ci::ApplicationHelper do
}
}
intervals_in_words
.
each
do
|
interval
,
expectation
|
intervals_in_words
.
each
do
|
interval
,
expectation
|
duration_in_words
(
Time
.
now
+
interval
,
Time
.
now
).
should
==
expectation
expect
(
duration_in_words
(
Time
.
now
+
interval
,
Time
.
now
)).
to
eq
(
expectation
)
end
end
end
end
it
"calculates interval from now if there is no finished_at"
do
it
"calculates interval from now if there is no finished_at"
do
duration_in_words
(
nil
,
Time
.
now
-
5
).
should
==
"5 seconds"
expect
(
duration_in_words
(
nil
,
Time
.
now
-
5
)).
to
eq
(
"5 seconds"
)
end
end
end
end
...
@@ -30,7 +30,7 @@ describe Ci::ApplicationHelper do
...
@@ -30,7 +30,7 @@ describe Ci::ApplicationHelper do
}
}
intervals_in_words
.
each
do
|
interval
,
expectation
|
intervals_in_words
.
each
do
|
interval
,
expectation
|
time_interval_in_words
(
interval
).
should
==
expectation
expect
(
time_interval_in_words
(
interval
)).
to
eq
(
expectation
)
end
end
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