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
Kazuhiko Shiozaki
gitlab-ce
Commits
0beae70e
Commit
0beae70e
authored
Mar 14, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use strings instead of symbols
parent
021d53c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/projects/housekeeping_service_spec.rb
spec/services/projects/housekeeping_service_spec.rb
+3
-3
No files found.
spec/services/projects/housekeeping_service_spec.rb
View file @
0beae70e
...
@@ -4,7 +4,7 @@ describe Projects::HousekeepingService do
...
@@ -4,7 +4,7 @@ describe Projects::HousekeepingService do
subject
{
Projects
::
HousekeepingService
.
new
(
project
)
}
subject
{
Projects
::
HousekeepingService
.
new
(
project
)
}
let
(
:project
)
{
create
:project
}
let
(
:project
)
{
create
:project
}
describe
:execute
do
describe
'execute'
do
before
do
before
do
project
.
pushes_since_gc
=
3
project
.
pushes_since_gc
=
3
project
.
save!
project
.
save!
...
@@ -27,7 +27,7 @@ describe Projects::HousekeepingService do
...
@@ -27,7 +27,7 @@ describe Projects::HousekeepingService do
end
end
end
end
describe
:needed?
do
describe
'needed?'
do
it
'when the count is low enough'
do
it
'when the count is low enough'
do
expect
(
subject
.
needed?
).
to
eq
(
false
)
expect
(
subject
.
needed?
).
to
eq
(
false
)
end
end
...
@@ -38,7 +38,7 @@ describe Projects::HousekeepingService do
...
@@ -38,7 +38,7 @@ describe Projects::HousekeepingService do
end
end
end
end
describe
:increment!
do
describe
'increment!'
do
it
'increments the pushes_since_gc counter'
do
it
'increments the pushes_since_gc counter'
do
expect
(
project
.
pushes_since_gc
).
to
eq
(
0
)
expect
(
project
.
pushes_since_gc
).
to
eq
(
0
)
subject
.
increment!
subject
.
increment!
...
...
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