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
cd107220
Commit
cd107220
authored
Apr 26, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dumb specs
parent
4375b65f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/services/issues/update_service_spec.rb
spec/services/issues/update_service_spec.rb
+1
-1
spec/services/merge_requests/update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+1
-1
No files found.
spec/services/issues/update_service_spec.rb
View file @
cd107220
...
...
@@ -52,7 +52,7 @@ describe Issues::UpdateService, services: true do
it
{
expect
(
@issue
.
assignee
).
to
eq
(
user2
)
}
it
{
expect
(
@issue
).
to
be_closed
}
it
{
expect
(
@issue
.
labels
.
count
).
to
eq
(
1
)
}
it
{
expect
(
@issue
.
labels
.
first
.
title
).
to
eq
(
'Bug'
)
}
it
{
expect
(
@issue
.
labels
.
first
).
to
eq
(
label
)
}
it
'should send email to user2 about assign of new issue and email to user3 about issue unassignment'
do
deliveries
=
ActionMailer
::
Base
.
deliveries
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
cd107220
...
...
@@ -58,7 +58,7 @@ describe MergeRequests::UpdateService, services: true do
it
{
expect
(
@merge_request
.
assignee
).
to
eq
(
user2
)
}
it
{
expect
(
@merge_request
).
to
be_closed
}
it
{
expect
(
@merge_request
.
labels
.
count
).
to
eq
(
1
)
}
it
{
expect
(
@merge_request
.
labels
.
first
.
title
).
to
eq
(
'Bug'
)
}
it
{
expect
(
@merge_request
.
labels
.
first
).
to
eq
(
label
)
}
it
{
expect
(
@merge_request
.
target_branch
).
to
eq
(
'target'
)
}
it
'should execute hooks with update action'
do
...
...
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