diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-03-20 21:43:40 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-03-20 22:51:46 +0300 |
commit | bcc988a6c6c9896450b7c40d2718a1aa9dbd689f (patch) | |
tree | 0731b717a7975bf04817e4f9e3fa4d00e70b6080 /spec/models | |
parent | 3fd8e612719dbeb9d4790aef6875b005d9dd6aff (diff) |
Does not exclude message_html from attributes
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/broadcast_message_spec.rb | 6 |
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) |