Открыть боковую панель
nt_test111
nt_project_u8hcxr42ygkw
Коммиты
bcc988a6
Не подтверждена
Коммит
bcc988a6
создал
Мар 20, 2019
по автору
Douglas Barbosa Alexandre
Просмотр файлов
Does not exclude message_html from attributes
владелец
3fd8e612
Изменения
2
Скрыть пробелы
Построчно
Рядом
app/models/broadcast_message.rb
Просмотр файла @
bcc988a6
...
...
@@ -4,7 +4,7 @@ class BroadcastMessage < ActiveRecord::Base
include
CacheMarkdownField
include
Sortable
cache_markdown_field
:message
,
pipeline: :broadcast_message
cache_markdown_field
:message
,
pipeline: :broadcast_message
,
hidden:
false
validates
:message
,
presence:
true
validates
:starts_at
,
presence:
true
...
...
spec/models/broadcast_message_spec.rb
Просмотр файла @
bcc988a6
...
...
@@ -95,6 +95,12 @@
end
end
describe
'#attributes'
do
it
'includes message_html field'
do
expect
(
subject
.
attributes
.
keys
).
to
include
(
"cached_markdown_version"
,
"message_html"
)
end
end
describe
'#active?'
do
it
'is truthy when started and not ended'
do
message
=
build
(
:broadcast_message
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать