Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-20 21:43:40 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-20 22:51:46 +0300
commitbcc988a6c6c9896450b7c40d2718a1aa9dbd689f (patch)
tree0731b717a7975bf04817e4f9e3fa4d00e70b6080 /spec/models
parent3fd8e612719dbeb9d4790aef6875b005d9dd6aff (diff)
Does not exclude message_html from attributes
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/broadcast_message_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb
index 89839709131..30ca07d5d2c 100644
--- a/spec/models/broadcast_message_spec.rb
+++ b/spec/models/broadcast_message_spec.rb
@@ -95,6 +95,12 @@ describe BroadcastMessage do
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)