diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 11:46:32 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-13 11:49:59 -0500 |
commit | 843662821ddbf2d06aa2da72ce32717cebecb7c6 (patch) | |
tree | 6885e93e3e106f86102d8ac2641fb6e79116889a /spec/models | |
parent | c13b5acb16c7813d6913e26cc7ae67f691f914d6 (diff) | |
download | gitlab-ce-843662821ddbf2d06aa2da72ce32717cebecb7c6.tar.gz |
Move `BroadcastMessage#status` to a helper since it's presentational
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/broadcast_message_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb index 57550725ae3..f6f84db57e6 100644 --- a/spec/models/broadcast_message_spec.rb +++ b/spec/models/broadcast_message_spec.rb @@ -111,24 +111,4 @@ describe BroadcastMessage, models: true do end end end - - describe '#status' do - it 'returns Active' do - message = build(:broadcast_message) - - expect(message.status).to eq 'Active' - end - - it 'returns Expired' do - message = build(:broadcast_message, :expired) - - expect(message.status).to eq 'Expired' - end - - it 'returns Pending' do - message = build(:broadcast_message, :future) - - expect(message.status).to eq 'Pending' - end - end end |