summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-18 16:37:41 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 12:12:05 -0200
commit8673a70f500ae5b0e93336f9213947f0aba67033 (patch)
tree847605a19c9d8415a5da16faf0d02c73acf9e4f3 /spec
parenta74a69db689b7e36c0e275a1094b1ad757bd6e86 (diff)
downloadgitlab-ce-8673a70f500ae5b0e93336f9213947f0aba67033.tar.gz
Improve formatted message for tasks when action is a mention
Diffstat (limited to 'spec')
-rw-r--r--spec/models/task_spec.rb8
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