diff options
Diffstat (limited to 'spec/models/task_spec.rb')
-rw-r--r-- | spec/models/task_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/task_spec.rb b/spec/models/task_spec.rb index 916f618471f..2d00c7dbc8c 100644 --- a/spec/models/task_spec.rb +++ b/spec/models/task_spec.rb @@ -38,11 +38,17 @@ describe Task, models: true do end describe '#action_name' do - it 'returns assigned when action is assigned' do + it 'returns proper message when action is an assigment' do subject.action = Task::ASSIGNED expect(subject.action_name).to eq 'assigned' end + + it 'returns proper message when action is a mention' do + subject.action = Task::MENTIONED + + expect(subject.action_name).to eq 'mentioned you on' + end end describe '#body?' do |