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
Boxiang Sun
gitlab-ce
Commits
5c31c720
Commit
5c31c720
authored
Aug 24, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use block rather than just b
parent
cc2c737d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/services/projects/housekeeping_service_spec.rb
spec/services/projects/housekeeping_service_spec.rb
+4
-4
No files found.
spec/services/projects/housekeeping_service_spec.rb
View file @
5c31c720
...
...
@@ -24,8 +24,8 @@ describe Projects::HousekeepingService do
end
it
'yields the block if given'
do
expect
do
|
b
|
subject
.
execute
(
&
b
)
expect
do
|
b
lock
|
subject
.
execute
(
&
b
lock
)
end
.
to
yield_with_no_args
end
...
...
@@ -47,8 +47,8 @@ describe Projects::HousekeepingService do
end
it
'does not yield'
do
expect
do
|
b
|
expect
{
subject
.
execute
(
&
b
)
}
expect
do
|
b
lock
|
expect
{
subject
.
execute
(
&
b
lock
)
}
.
to
raise_error
(
Projects
::
HousekeepingService
::
LeaseTaken
)
end
.
not_to
yield_with_no_args
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