Открыть боковую панель
nt_test121
nt_project_9da4a5yt9x4b
Коммиты
1894c6eb
Коммит
1894c6eb
создал
Сен 02, 2019
по автору
Thong Kuah
Просмотр файлов
Add facade which will always return nil in CE
This method will be overridden in EE
владелец
e6fb109d
Изменения
2
Скрыть пробелы
Построчно
Рядом
app/presenters/clusterable_presenter.rb
Просмотр файла @
1894c6eb
...
...
@@ -53,6 +53,11 @@ def cluster_path(cluster, params = {})
raise
NotImplementedError
end
# Will be overidden in EE
def
environments_cluster_path
(
cluster
)
nil
end
def
empty_state_help_text
nil
end
...
...
spec/presenters/clusterable_presenter_spec.rb
Просмотр файла @
1894c6eb
...
...
@@ -78,4 +78,13 @@
it_behaves_like
'appropriate member permissions'
end
end
describe
'#environments_cluster_path'
do
subject
{
described_class
.
new
(
clusterable
).
environments_cluster_path
(
cluster
)
}
let
(
:clusterable
)
{
create
(
:group
)
}
let
(
:cluster
)
{
create
(
:cluster_for_group
,
groups:
[
clusterable
])
}
it
{
is_expected
.
to
be_nil
}
end
end
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать