Открыть боковую панель
nt_test133
nt_project_uxpg8lvcuq8w
Коммиты
30aa6420
Коммит
30aa6420
создал
Июн 01, 2016
по автору
Stan Hu
Просмотр файлов
Fix note validation spec failures
владелец
2d084dd8
Изменения
2
Скрыть пробелы
Построчно
Рядом
spec/models/commit_range_spec.rb
Просмотр файла @
30aa6420
...
...
@@ -151,9 +151,10 @@
issue
=
create
(
:issue
)
create
(
:note_on_issue
,
noteable
_id
:
issue
.
id
,
noteable:
issue
,
system:
true
,
note:
commit1
.
revert_description
)
note:
commit1
.
revert_description
,
project:
issue
.
project
)
expect_any_instance_of
(
Commit
).
to
receive
(
:reverts_commit?
).
with
(
commit1
).
...
...
spec/models/note_spec.rb
Просмотр файла @
30aa6420
...
...
@@ -154,7 +154,7 @@
context
"confidential issues"
do
let
(
:user
)
{
create
:user
}
let
(
:confidential_issue
)
{
create
(
:issue
,
:confidential
,
author:
user
)
}
let
(
:confidential_note
)
{
create
:note
,
note:
"Random"
,
noteable:
confidential_issue
}
let
(
:confidential_note
)
{
create
:note
,
note:
"Random"
,
noteable:
confidential_issue
,
project:
confidential_issue
.
project
}
it
"returns notes with matching content if user can see the issue"
do
expect
(
described_class
.
search
(
confidential_note
.
note
,
as_user:
user
)).
to
eq
([
confidential_note
])
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать