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
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
Show 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
subject
{
Projects
::
HousekeepingService
.
new
(
project
)
}
let
(
:project
)
{
create
:project
}
describe
:execute
do
describe
'execute'
do
before
do
project
.
pushes_since_gc
=
3
project
.
save!
...
...
@@ -27,7 +27,7 @@ describe Projects::HousekeepingService do
end
end
describe
:needed?
do
describe
'needed?'
do
it
'when the count is low enough'
do
expect
(
subject
.
needed?
).
to
eq
(
false
)
end
...
...
@@ -38,7 +38,7 @@ describe Projects::HousekeepingService do
end
end
describe
:increment!
do
describe
'increment!'
do
it
'increments the pushes_since_gc counter'
do
expect
(
project
.
pushes_since_gc
).
to
eq
(
0
)
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