Открыть боковую панель
nt_test111
nt_project_u8hcxr42ygkw
Коммиты
48bc3be6
Коммит
48bc3be6
создал
Апр 04, 2019
по автору
Heinrich Lee Yu
Просмотр файлов
Fix naming of test
ALso makes it consistent with EE
владелец
90975062
Изменения
2
Скрыть пробелы
Построчно
Рядом
spec/services/merge_requests/refresh_service_spec.rb
Просмотр файла @
48bc3be6
...
...
@@ -269,13 +269,11 @@
end
end
context
'push to origin repo source branch
when an MR was reopened
'
do
context
'push to origin repo source branch'
do
let
(
:refresh_service
)
{
service
.
new
(
@project
,
@user
)
}
let
(
:notification_service
)
{
spy
(
'notification_service'
)
}
before
do
@merge_request
.
update
(
state: :reopened
)
allow
(
refresh_service
).
to
receive
(
:execute_hooks
)
allow
(
NotificationService
).
to
receive
(
:new
)
{
notification_service
}
refresh_service
.
execute
(
@oldrev
,
@newrev
,
'refs/heads/master'
)
...
...
spec/services/merge_requests/update_service_spec.rb
Просмотр файла @
48bc3be6
...
...
@@ -405,7 +405,7 @@ def update_merge_request(opts)
end
end
context
'when the
issue
is relabeled'
do
context
'when the
merge request
is relabeled'
do
let!
(
:non_subscriber
)
{
create
(
:user
)
}
let!
(
:subscriber
)
{
create
(
:user
)
{
|
u
|
label
.
toggle_subscription
(
u
,
project
)
}
}
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать