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
Jérome Perrin
gitlab-ce
Commits
f1504e1a
Commit
f1504e1a
authored
Nov 30, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fix
parent
e92ceb7b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
10 deletions
+25
-10
app/models/project_services/gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+1
-1
spec/features/admin/admin_users_spec.rb
spec/features/admin/admin_users_spec.rb
+4
-1
spec/services/issues/close_service_spec.rb
spec/services/issues/close_service_spec.rb
+3
-1
spec/services/issues/update_service_spec.rb
spec/services/issues/update_service_spec.rb
+4
-1
spec/services/merge_requests/close_service_spec.rb
spec/services/merge_requests/close_service_spec.rb
+3
-1
spec/services/merge_requests/merge_service_spec.rb
spec/services/merge_requests/merge_service_spec.rb
+3
-2
spec/services/merge_requests/reopen_service_spec.rb
spec/services/merge_requests/reopen_service_spec.rb
+3
-1
spec/services/merge_requests/update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+4
-2
No files found.
app/models/project_services/gitlab_ci_service.rb
View file @
f1504e1a
...
...
@@ -55,7 +55,7 @@ class GitlabCiService < CiService
end
def
get_ci_commit
(
sha
,
ref
)
Ci
::
Project
.
find
(
project
.
gitlab_ci_project
).
commits
.
find_by_sha!
(
sha
)
Ci
::
Project
.
find
(
project
.
gitlab_ci_project
.
id
).
commits
.
find_by_sha!
(
sha
)
end
def
commit_status
(
sha
,
ref
)
...
...
spec/features/admin/admin_users_spec.rb
View file @
f1504e1a
...
...
@@ -93,7 +93,10 @@ describe "Admin::Users", feature: true do
end
it
"should send valid email to user with email & password"
do
click_button
"Create user"
perform_enqueued_jobs
do
click_button
"Create user"
end
user
=
User
.
find_by
(
username:
'bang'
)
email
=
ActionMailer
::
Base
.
deliveries
.
last
expect
(
email
.
subject
).
to
have_content
(
'Account was created'
)
...
...
spec/services/issues/close_service_spec.rb
View file @
f1504e1a
...
...
@@ -14,7 +14,9 @@ describe Issues::CloseService do
describe
:execute
do
context
"valid params"
do
before
do
@issue
=
Issues
::
CloseService
.
new
(
project
,
user
,
{}).
execute
(
issue
)
perform_enqueued_jobs
do
@issue
=
Issues
::
CloseService
.
new
(
project
,
user
,
{}).
execute
(
issue
)
end
end
it
{
expect
(
@issue
).
to
be_valid
}
...
...
spec/services/issues/update_service_spec.rb
View file @
f1504e1a
...
...
@@ -36,7 +36,10 @@ describe Issues::UpdateService do
label_ids:
[
label
.
id
]
}
@issue
=
Issues
::
UpdateService
.
new
(
project
,
user
,
opts
).
execute
(
issue
)
perform_enqueued_jobs
do
@issue
=
Issues
::
UpdateService
.
new
(
project
,
user
,
opts
).
execute
(
issue
)
end
@issue
.
reload
end
...
...
spec/services/merge_requests/close_service_spec.rb
View file @
f1504e1a
...
...
@@ -18,7 +18,9 @@ describe MergeRequests::CloseService do
before
do
allow
(
service
).
to
receive
(
:execute_hooks
)
@merge_request
=
service
.
execute
(
merge_request
)
perform_enqueued_jobs
do
@merge_request
=
service
.
execute
(
merge_request
)
end
end
it
{
expect
(
@merge_request
).
to
be_valid
}
...
...
spec/services/merge_requests/merge_service_spec.rb
View file @
f1504e1a
...
...
@@ -17,8 +17,9 @@ describe MergeRequests::MergeService do
before
do
allow
(
service
).
to
receive
(
:execute_hooks
)
service
.
execute
(
merge_request
,
'Awesome message'
)
perform_enqueued_jobs
do
service
.
execute
(
merge_request
,
'Awesome message'
)
end
end
it
{
expect
(
merge_request
).
to
be_valid
}
...
...
spec/services/merge_requests/reopen_service_spec.rb
View file @
f1504e1a
...
...
@@ -19,7 +19,9 @@ describe MergeRequests::ReopenService do
allow
(
service
).
to
receive
(
:execute_hooks
)
merge_request
.
state
=
:closed
service
.
execute
(
merge_request
)
perform_enqueued_jobs
do
service
.
execute
(
merge_request
)
end
end
it
{
expect
(
merge_request
).
to
be_valid
}
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
f1504e1a
...
...
@@ -42,8 +42,10 @@ describe MergeRequests::UpdateService do
before
do
allow
(
service
).
to
receive
(
:execute_hooks
)
@merge_request
=
service
.
execute
(
merge_request
)
@merge_request
.
reload
perform_enqueued_jobs
do
@merge_request
=
service
.
execute
(
merge_request
)
@merge_request
.
reload
end
end
it
{
expect
(
@merge_request
).
to
be_valid
}
...
...
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